--- Logging error ---
Traceback (most recent call last):
File "/home/obaskov/94/ULL/src/grammar_learner/pqa_table.py", line 397, in wide_rows
rulez, re = learn(**kwargs)
File "/home/obaskov/94/ULL/src/grammar_learner/learner.py", line 98, in learn
+ str(kwa(0, 'max_unparsed_words', **kwargs)))
ValueError: Empty filtered dataset with max_sentence_length = 1, max_unparsed_words = 10
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/logging/__init__.py", line 993, in emit
msg = self.format(record)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/logging/__init__.py", line 839, in format
return fmt.format(record)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/logging/__init__.py", line 576, in format
record.message = record.getMessage()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/logging/__init__.py", line 338, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/__main__.py", line 3, in <module>
app.launch_new_instance()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/kernelapp.py", line 486, in start
self.io_loop.start()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/tornado/platform/asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/asyncio/base_events.py", line 422, in run_forever
self._run_once()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/asyncio/base_events.py", line 1434, in _run_once
handle._run()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/asyncio/events.py", line 145, in _run
self._callback(*self._args)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/tornado/ioloop.py", line 758, in _run_callback
ret = callback()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/tornado/stack_context.py", line 300, in null_wrapper
return fn(*args, **kwargs)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 536, in <lambda>
self.io_loop.add_callback(lambda : self._handle_events(self.socket, 0))
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 450, in _handle_events
self._handle_recv()
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
callback(*args, **kwargs)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/tornado/stack_context.py", line 300, in null_wrapper
return fn(*args, **kwargs)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/kernelbase.py", line 233, in dispatch_shell
handler(stream, idents, msg)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/ipkernel.py", line 208, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/ipykernel/zmqshell.py", line 537, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2662, in run_cell
raw_cell, store_history, silent, shell_futures)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2785, in _run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2901, in run_ast_nodes
if self.run_code(code, result):
File "/home/obaskov/miniconda3/envs/ull/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2961, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-4-d373431b40d8>", line 2, in <module>
a, _, header, log, rules = wide_rows(line, out_dir, cp, rp, runs, **kwargs)
File "/home/obaskov/94/ULL/src/grammar_learner/pqa_table.py", line 419, in wide_rows
sys.exc_info())
Message: 'pqa_table.py wide_rows:'
Arguments: ('learn_grammar(**kwargs) ⇒ exception:\n', (<class 'ValueError'>, ValueError('Empty filtered dataset with max_sentence_length = 1, max_unparsed_words = 10',), <traceback object at 0x7fda415e3948>))