A library for graphical modeling, particularly of NLP tasks