Skip to content

Fix filtering of characters#1

Open
smilli wants to merge 2 commits intodbamman:masterfrom
smilli:master
Open

Fix filtering of characters#1
smilli wants to merge 2 commits intodbamman:masterfrom
smilli:master

Conversation

@smilli
Copy link
Copy Markdown

@smilli smilli commented May 19, 2016

Right now if BookNLP finds character names such as "Sakura Kinomoto" and "Kinomoto Sakura" it flags both both "Sakura Kinomoto" and "Kinomoto Sakura" because they are subsets of each other, so the character ends up not being added at all. I made a fix to add the character name with earliest lexicographic order in that case.

I think that the getVariants method still has to be modified to include both of them though. Because "Kinomoto Sakura" is the name that will end up getting ended, but "Sakura Kinomoto" isn't found in the getVariants part.

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.

1 participant