A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in run_unprotected(self=<__main__.BonitoCGI instance>, path=['saveconc_form'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>) |
275 % _('You are not allowed to use this corpus.')
|
276 self.output_headers()
|
=> 277 self.output_result (methodname, tmpl, result, outf)
|
278
|
279 def process_method (self, methodname, pos_args, named_args):
|
self = <__main__.BonitoCGI instance>, self.output_result = <bound method BonitoCGI.output_result of <__main__.BonitoCGI instance>>, methodname = 'saveconc', tmpl = 'saveconc_form.tmpl', result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2bq'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22N03-4004%22 %2F%3E'}, {'q': u'n0 0%3E0 0 %5Btag%3D%22JJ%22%5D%5Btag%3D%22NN%22%5D'}, {'q': u'sword%2Fi 1%3E0~3%3E0'}, {'q': u'sword%2Fi 0%3C0~0%3E0'}, {'q': u'r250'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, outf = <open file '<stdout>', mode 'w'> |
/usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in output_result(self=<__main__.BonitoCGI instance>, methodname='saveconc', template='saveconc_form.tmpl', result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2bq'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22N03-4004%22 %2F%3E'}, {'q': u'n0 0%3E0 0 %5Btag%3D%22JJ%22%5D%5Btag%3D%22NN%22%5D'}, {'q': u'sword%2Fi 1%3E0~3%3E0'}, {'q': u'sword%2Fi 0%3C0~0%3E0'}, {'q': u'r250'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, outf=<open file '<stdout>', mode 'w'>, return_template=False) |
401 self.set_localisation() # in case run_protected has not ran (CA)
|
402 self._add_globals (result)
|
=> 403 self.add_undefined (result, methodname)
|
404 result = self.rec_recode(result)
|
405 for attr in dir(self): # recoding self
|
self = <__main__.BonitoCGI instance>, self.add_undefined = <bound method BonitoCGI.add_undefined of <__main__.BonitoCGI instance>>, result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2bq'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22N03-4004%22 %2F%3E'}, {'q': u'n0 0%3E0 0 %5Btag%3D%22JJ%22%5D%5Btag%3D%22NN%22%5D'}, {'q': u'sword%2Fi 1%3E0~3%3E0'}, {'q': u'sword%2Fi 0%3C0~0%3E0'}, {'q': u'r250'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, methodname = 'saveconc' |
/usr/lib/python2.7/dist-packages/bonito/conccgi.py in add_undefined(self=<__main__.BonitoCGI instance>, result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'tag', 'n': u'tag'}, {'label': u'word (lowercase)', 'n': u'lc'}], 'Corplist': [{'id': u'aclarc2', 'name': u'ACL ARC 2.0 segmented, PoS tagged and cleaned (to an extent)'}, {'id': u'aclrdtec2ak', 'name': u'ACL-RD TEC 2.0 --- Annotations by Anne-Kathrin Schumann'}, {'id': u'aclrdtec2bq', 'name': u'ACL-RD TEC 2.0 --- Annotations by Behrang QasemiZadeh'}, {'id': u'fa_ud_dev', 'name': u'fa_ud_dev: The Development Set of the Persian Universal Dependency Treebank (v1.1)'}, {'id': u'frameinduction', 'name': u'Frame Induction Corpus'}, {'id': u'frameinduction2', 'name': u'Frame Induction Corpus 2.0'}, {'id': u'mgrams', 'name': u'M-Grams'}, {'id': u'motion-frameinduction', 'name': u'Motion Frame Induction Corpus 2.0'}, {'id': u'multext_east_farsi', 'name': u'oana-fa: the 1984 corpus, Farsi version'}, {'id': u'sample_raw_web_corpus', 'name': u'Sample raw web corpus'}, {'id': u'shargh_corpus', 'name': u'Shargh Corpus'}], 'Globals': [{'name': 'corpname', 'value': u'aclrdtec2bq'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'attrs', 'value': u'word'}, {'name': 'attr_allpos', 'value': u'kw'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u'term'}, {'name': 'refs', 'value': u'%3Dterm.class%2C%3Dterm.id%2C%3Dterm.annotatorid'}, {'name': 'copy_icon', 'value': 1}, {'name': 'attr_tooltip', 'value': u'attr_tooltip'}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%3Cterm %2F%3E within %3Cdoc id%3D%22N03-4004%22 %2F%3E'}, {'q': u'n0 0%3E0 0 %5Btag%3D%22JJ%22%5D%5Btag%3D%22NN%22%5D'}, {'q': u'sword%2Fi 1%3E0~3%3E0'}, {'q': u'sword%2Fi 0%3C0~0%3E0'}, {'q': u'r250'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.annotatorid', 'n': u'doc.annotatorid'}, {'label': u's.id', 'n': u's.id'}, {'label': u's.annotatorid', 'n': u's.annotatorid'}, {'label': u'term.class', 'n': u'term.class'}, {'label': u'term.id', 'n': u'term.id'}, {'label': u'term.annotatorid', 'n': u'term.annotatorid'}], 'WSposlist': [], 'Wposlist': [], '_version': u'2.31-open-2.121.1-open-3.56.8', 'can_wseval': '', ...}, methodname='saveconc') |
377 corpname=self.corpname,
|
378 _cache_dir=self._cache_dir,
|
=> 379 subchash=getattr(self._corp(), "subchash", None))]
|
380
|
381 if 'TextTypeSel' in names:
|
subchash undefined, builtin getattr = <built-in function getattr>, self = <__main__.BonitoCGI instance>, self._corp = <bound method BonitoCGI._corp of <__main__.BonitoCGI instance>>, builtin None = None |