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'}, {'label': u'lemma (lowercase)', 'n': u'lemma_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'aclarc2'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u'%3Ddoc.aclid'}, {'name': 'gdex_enabled', 'value': 1}, {'name': 'gdexcnt', 'value': 30}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%5Bword%3D%22embedding%22%5D within %3Csection type%3D%22abstract%22%2F%3E'}, {'q': u'e30 '}], 'StructAttrList': [{'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.aclid', 'n': u'doc.aclid'}, {'label': u'section.position', 'n': u'section.position'}, {'label': u'section.type', 'n': u'section.type'}, {'label': u'section1.position', 'n': u'section1.position'}, {'label': u'section1.type', 'n': u'section1.type'}, {'label': u'paragraph.position', 'n': u'paragraph.position'}], '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'}, {'label': u'lemma (lowercase)', 'n': u'lemma_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'aclarc2'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u'%3Ddoc.aclid'}, {'name': 'gdex_enabled', 'value': 1}, {'name': 'gdexcnt', 'value': 30}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%5Bword%3D%22embedding%22%5D within %3Csection type%3D%22abstract%22%2F%3E'}, {'q': u'e30 '}], 'StructAttrList': [{'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.aclid', 'n': u'doc.aclid'}, {'label': u'section.position', 'n': u'section.position'}, {'label': u'section.type', 'n': u'section.type'}, {'label': u'section1.position', 'n': u'section1.position'}, {'label': u'section1.type', 'n': u'section1.type'}, {'label': u'paragraph.position', 'n': u'paragraph.position'}], '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'}, {'label': u'lemma (lowercase)', 'n': u'lemma_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'aclarc2'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u'%3Ddoc.aclid'}, {'name': 'gdex_enabled', 'value': 1}, {'name': 'gdexcnt', 'value': 30}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%5Bword%3D%22embedding%22%5D within %3Csection type%3D%22abstract%22%2F%3E'}, {'q': u'e30 '}], 'StructAttrList': [{'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.aclid', 'n': u'doc.aclid'}, {'label': u'section.position', 'n': u'section.position'}, {'label': u'section.type', 'n': u'section.type'}, {'label': u'section1.position', 'n': u'section1.position'}, {'label': u'section1.type', 'n': u'section1.type'}, {'label': u'paragraph.position', 'n': u'paragraph.position'}], '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'}, {'label': u'lemma (lowercase)', 'n': u'lemma_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'aclarc2'}, {'name': 'attrs', 'value': u'word'}, {'name': 'ctxattrs', 'value': u'word'}, {'name': 'structs', 'value': u''}, {'name': 'refs', 'value': u'%3Ddoc.aclid'}, {'name': 'gdex_enabled', 'value': 1}, {'name': 'gdexcnt', 'value': 30}], 'Lposlist': [], 'Q': [{'q': u'aword%2C%5Bword%3D%22embedding%22%5D within %3Csection type%3D%22abstract%22%2F%3E'}, {'q': u'e30 '}], 'StructAttrList': [{'label': u'doc.title', 'n': u'doc.title'}, {'label': u'doc.aclid', 'n': u'doc.aclid'}, {'label': u'section.position', 'n': u'section.position'}, {'label': u'section.type', 'n': u'section.type'}, {'label': u'section1.position', 'n': u'section1.position'}, {'label': u'section1.type', 'n': u'section1.type'}, {'label': u'paragraph.position', 'n': u'paragraph.position'}], '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 |