Skip to content

Fix sentence tokenizer types#772

Open
jeremybmerrill wants to merge 6 commits intoNaturalNode:masterfrom
jeremybmerrill:fix/sentence-tokenizer-types
Open

Fix sentence tokenizer types#772
jeremybmerrill wants to merge 6 commits intoNaturalNode:masterfrom
jeremybmerrill:fix/sentence-tokenizer-types

Conversation

@jeremybmerrill
Copy link
Contributor

Hi Hugo:

This PR includes a fix I proposed last year in #760 (comment) -- to add the trimSentences argument to sentenceTokenizer (which I added to the implementation code in the previous PR) to the type definition file. I had missed this fix previously because I was still learning typescript.

I also remove the apparently-deprecated sentenceDemarkers argument to sentenceTokenizer from index.d.ts (and from a test file). I say that argument appears to be deprecated because I don't see it referenced anywhere in the sentenceTokenizer code (only in type defs and tests).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants