Skip to content

Commit

Permalink
Skip inconsistent test (nltk#2605)
Browse files Browse the repository at this point in the history
* Skip inconsistent test

There is a ~1.8% chance that this test will randomly fail, despite working correctly.

* Reduced precision of tagger evaluation test

Rather than skipping, reducing the precision to between 70% and 80%, rather than between 73% and 74% seems like the best solution for preserving the test, while keeping the test easily readable.
  • Loading branch information
tomaarsen authored Oct 8, 2020
1 parent d558ea1 commit 385fb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltk/tag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
We evaluate a tagger on data that was not seen during training:
>>> tagger.evaluate(brown.tagged_sents(categories='news')[500:600])
0.73...
0.7...
For more information, please consult chapter 5 of the NLTK Book.
"""
Expand Down

0 comments on commit 385fb3f

Please sign in to comment.