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

test_advanced2()[source]

Same more advanced example, but with 1 rating removed. Again, removal of that 1 rating should not matter.