Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing a single phrase not returning back multiple bigrams, #794 #1362

Merged
merged 2 commits into from
May 23, 2017

Conversation

toumorokoshi
Copy link
Contributor

Here's another try at fixing #794. The previous PR #879 added a unit test, but didn't catch the issue because the bigram "human interface" was already included from the very first entry. Added a more targetted unit test to catch this.

@tmylk
Copy link
Contributor

tmylk commented May 23, 2017

Thanks. Let's remove the print and LGTM when tests pass

@gojomo
Copy link
Collaborator

gojomo commented May 23, 2017

Thanks! To ensure the same confusion as befell the 1st fix attempt doesn't occur – have you verified the updated test does fail, without the updated fix?

@toumorokoshi
Copy link
Contributor Author

@gojomo yes! Although I didn't commit the test first separately.

A unit test was added in the previous PR, and it did pass. However, it wasn't verifying the behavior, as the expected bigram was already added by a previous sentence.

My unit test isolates the actual behavior.

@tmylk tmylk merged commit 5242a32 into piskvorky:develop May 23, 2017
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.

3 participants