nltk.test.unit.test_disagreement module¶
- class nltk.test.unit.test_disagreement.TestDisagreement[source]¶
Bases:
TestCase
Class containing unit tests for nltk.metrics.agreement.Disagreement.
- test_easy()[source]¶
Simple test, based on https://github.com/foolswood/krippendorffs_alpha/raw/master/krippendorff.pdf.
- test_easy2()[source]¶
Same simple test with 1 rating removed. Removal of that rating should not matter: K-Apha ignores items with only 1 rating.
- test_advanced()[source]¶
More advanced test, based on http://www.agreestat.com/research_papers/onkrippendorffalpha.pdf