bminixhofer / nlprule

A fast, low-resource Natural Language Processing and Text Correction library written in Rust.
Apache License 2.0
599 stars 39 forks source link

fix bug with matching logic assuming sentence starts from index 0 #63

Closed bminixhofer closed 3 years ago

bminixhofer commented 3 years ago

@drahnr This is the fix. It also removes the call to .char_indices. Now the tests run with a shifted input position, so coverage should be good again.

I'll look over this once more a bit later and then merge + release.

bminixhofer commented 3 years ago

Should work in 0.6.0 now.