clemenshelm / chillbill-recognizer

0 stars 0 forks source link

Avoid a word being picked up as two things #355

Open tamacodechi opened 7 years ago

tamacodechi commented 7 years ago

Another solution we could have to work with regexes that we are not able to limit with labels or presences of other words may be limiting the words that are used when we filter.

Similar to when we use reduced_words in our detectors, when a word is used in a term, we could set a type: attribute and reduce the pool of words we use when detecting.

tamacodechi commented 7 years ago

For now we can simply allow for the type attribute to be set and work with examples as they come. I'm sure there are many in the invoice number recognition :wink:

tamacodechi commented 7 years ago

@Tr4in @clemenshelm I think this issue is at least a 5 :see_no_evil: It will mean refactoring every detector as well as writing new logic