I have many different strings of text. These strings of text are labels for particular things. But these labels are sloppy, sometimes one label is used for many different things. For example:
"Brown foxes edition 1999 series 1-6 EDI"
"Light [old] seasons 1,2,3,4 other gibberish"
I would like to answer the question: "If the label contains a series, does that serie contain the value N?" For the examples above 6 would be included in the first one, but not the second.
Initially I thought of using regexes but that quickly grew out of hand. Digits appear everywhere, people can get very creative with separators and the location of the series in the label is not fixed. There are many different ways the labels denote series.
What I can do, however, generate labels with series. I'll just grab a bunch of separators, a start and an end digit and iterate. This gives me a nice labeled training set.
Naive Bayes comes to mind for this problem but I'm not sure what good features would be.
update
Let me try to clarify. Given a label and given a number determine if that number is contained within that label.
For example: Given I'm looking for season 2 (the number). Does "Pioneer One 2011 seasons 1-3" contain season 2?