Skip to content

Is handling of singular / plural forms ('sentence' and 'sentences') correct / consistent? #242

Answered by Ankush-Chander
0dB asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @0dB
Thanks bringing this to our attention.
The occurrences of sentences being grouped together is working as per the scrubber code.
Since scrubber function returns the span.text in the example code, sentences are grouped as one, while sentence are being grouped together.

We can change the desired behaviour by changing the example code from

return span.text

to

return span.lemma_

This will group all occurrences of sentence and sentences together.

Please feel free to make this change in the example notebook in your existing PR #233 .

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ceteri
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #231 on August 22, 2023 16:06.