You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use frog to parse Dutch text. Through xtas frog returns nothing if I send it text to process. When I run the tests for frog (with frog started), two tests fail.
I start frog with docker run -p 127.0.0.1:9887:9887 -t -i proycon/lamachine frog -S 9887 --skip=nmp
Then I run the tests: nosetests xtas/tests/test_frog.py
======================================================================
FAIL: xtas.tests.test_frog.test_call_frog
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jvdzwaan/.virtualenvs/wwww/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jvdzwaan/code/xtas/xtas/tests/test_frog.py", line 44, in test_call_frog
assert_equal(len(lines), 10)
AssertionError: 0 != 10
-------------------- >> begin captured logging << --------------------
xtas.core: INFO: Cannot import xtas_config, falling back to default
xtas.core: INFO: Using Elasticsearch with configuration [{'host': 'localhost', 'port': 9200}]
root: INFO: Frog is alive!
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test whether the xtas.tasks.single.frog call works
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jvdzwaan/.virtualenvs/wwww/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jvdzwaan/code/xtas/xtas/tests/test_frog.py", line 90, in test_frog_task
assert_equal(len(raw), 5)
AssertionError: 0 != 5
-------------------- >> begin captured logging << --------------------
root: INFO: Frog is alive!
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 4 tests in 0.070s
FAILED (failures=2)
As you can see, it does connect to frog (logging says: root: INFO: Frog is alive!). But it receives no data from frog. If you look at the terminal in which frog is started, it does do something (so text is received by frog). But nothing is returned.
I think the problem is that something goes wrong with the websocket communication.
The frogclient in pynlpl does work fine with frog in the docker.
The text was updated successfully, but these errors were encountered:
I'd like to use frog to parse Dutch text. Through xtas frog returns nothing if I send it text to process. When I run the tests for frog (with frog started), two tests fail.
I start frog with
docker run -p 127.0.0.1:9887:9887 -t -i proycon/lamachine frog -S 9887 --skip=nmp
Then I run the tests:
nosetests xtas/tests/test_frog.py
As you can see, it does connect to frog (logging says:
root: INFO: Frog is alive!
). But it receives no data from frog. If you look at the terminal in which frog is started, it does do something (so text is received by frog). But nothing is returned.I think the problem is that something goes wrong with the websocket communication.
The frogclient in pynlpl does work fine with frog in the docker.
The text was updated successfully, but these errors were encountered: