Skip to content

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

Merged
tmylk merged 2 commits into
piskvorky:developfrom
toumorokoshi:multiple_bigram_single_phrase
May 23, 2017
Merged

fixing a single phrase not returning back multiple bigrams, #794#1362
tmylk merged 2 commits into
piskvorky:developfrom
toumorokoshi:multiple_bigram_single_phrase

Conversation

@toumorokoshi
Copy link
Copy Markdown
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
Copy Markdown
Contributor

tmylk commented May 23, 2017

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

@gojomo
Copy link
Copy Markdown
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
Copy Markdown
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