Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling frog doesn't work #125

Open
jvdzwaan opened this issue Jul 28, 2016 · 0 comments
Open

Calling frog doesn't work #125

jvdzwaan opened this issue Jul 28, 2016 · 0 comments

Comments

@jvdzwaan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant