almondtools / stringsearchalgorithms

String matching algorithms for searching a single or multiple strings in large texts
http://stringsearchalgorithms.amygdalum.net/
GNU Lesser General Public License v3.0
44 stars 4 forks source link

Invalid LONGEST_MATCH results from SetBackwardOracleMatching #9

Closed sebastianarnold closed 4 years ago

sebastianarnold commented 4 years ago

I am using SetBackwardOracleMatching with MatchOption.LONGEST_MATCH to match multiple patterns on a StringCharProvider.

For example: "Die Krankheit ist seit dem Aufkommen wirksamer Antibiotika selten geworden".

Please see the unit test provided at https://github.com/almondtools/stringsearchalgorithms/pull/8

almondtools commented 4 years ago

Thanks for pointing me to the reverse order solution. The problem should be fixed with the release 0.4.3. Just reopen this issue if the problem keeps persisting.