import nltk
from nltk.metrics import masi_distance
toy_data = [['1', 5723, [1,2]],['2', 5723, [2,3]]]
task = nltk.metrics.agreement.AnnotationTask(data=toy_data, distance=masi_distance)
print task.alpha()TypeError: unhashable type: 'list'toy_data = [['1', 5723, set([1,2])],['2', 5723, set([2,3])]]--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone, please excuse miscorrected typos
AttributeError: 'tuple' object has no attribute 'intersection'toy_data = [['1', 5723, frozenset([2,3])],['2', 5723, frozenset([2,3])]]
ret = 1.0 - (self.Do_alpha() / De)
ZeroDivisionError: float division by zero