Ulflander / compendium-js

English NLP for Node.js and the browser.
86 stars 9 forks source link

Sentence detection fails at simple punctuation #10

Closed giorgio79 closed 6 years ago

giorgio79 commented 6 years ago

image

artdent commented 6 years ago

It looks like the sentence boundary detector thinks that 'me' is an abbreviation. https://github.com/Ulflander/compendium-js/blob/1cd57b7f724dbeb3a46a70f99276adf6e2fe65fd/src/compendium-en.js#L172

Ulflander commented 6 years ago

Fixed in v0.0.28. Thanks for the report guys!

Ulflander commented 6 years ago

FYI I also just updated the demo page, so you can test the fix here: http://ulflander.github.io/compendium-js/?text=Do%20you%20love%20me.%20but%20do%20you%20hate%20me%3F