Skip to content

Instantly share code, notes, and snippets.

View Lichtphyz's full-sized avatar

Daniel E. Licht Lichtphyz

View GitHub Profile
@cbuntain
cbuntain / agreement.py
Created March 19, 2020 18:38
Example of using NLTK's agreement package to calculate agreement scores for an annotation task
#
# Author: Cody Buntain
# Date: 19 March 2020
#
# Description:
# This code is an example of uysing the agreement package
#. in NLTK to calculate a number of agreement metrics on
#. a set of annotations. Currently, this code will work
#. with two annotators and multiple labels.
#. You can use Fleiss's Kappa or Krippendorf's Alpha if you