proycon / pynlpl

PyNLPl, pronounced as 'pineapple', is a Python library for Natural Language Processing. It contains various modules useful for common, and less common, NLP tasks. PyNLPl can be used for basic tasks such as the extraction of n-grams and frequency lists, and to build simple language model. There are also more complex data types and algorithms. Moreover, there are parsers for file formats common in NLP (e.g. FoLiA/Giza/Moses/ARPA/Timbl/CQL). There are also clients to interface with various NLP specific servers. PyNLPl most notably features a very extensive library for working with FoLiA XML (Format for Linguistic Annotation).

Home Page:https://pypi.python.org/pypi/PyNLPl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NameError] name 'loadsetdefinition' is not defined

proycon opened this issue · comments

Declaring a new annotation type got broken somehow:

  File "/scratch2/www/flat/env/lib/python3.4/site-packages/foliadocserve/foliadocserve.py", line 578, in query
    result =  query(doc,False,self.debug >= 2)
  File "/scratch2/www/flat/env/lib/python3.4/site-packages/pynlpl/formats/fql.py", line 1892, in __call__
    doc.declare(Class,decset,**defaults)
  File "/scratch2/www/flat/env/lib/python3.4/site-packages/pynlpl/formats/folia.py", line 6656, in declare
    self.setdefinitions[set] = loadsetdefinition(set) #will raise exception on error
[QUERY FAILED] FoLiA Error in henniebrugman/wolf016hist01_01: [NameError] name 'loadsetdefinition' is not defined