Closed PROrock closed 2 years ago
Hi,
the Kdy slaví svátek Oto
sentence on Lindat also works, in the following sense:
vertical
output lists only the found named entities, so the result is emptyI will investigate why the dockerized wembeddings_service fail.
Hi,
the problem has been fixed in https://github.com/ufal/wembedding_service/commit/e55a6d9d75deb17d9433e92ad2adf0c68c71e2c5.
Cheers!
Thanks for the explanation and mainly for the fix! 👍
For sentence
Kdy slaví svátek Oto
NameTag2 returns status code400
and response:An internal error occurred during processing.
This happens on localhost for all output types. Based on the stacktrace, the error occures because wembeddings throws also an error (see below).Curl to test it
curl --location --request GET 'localhost:8001/recognize?data=Kdy slaví svátek Oto&output=vertical'
On the http://lindat.mff.cuni.cz/services/nametag/ it behaves a bit differently, as the sentence
Kdy slaví svátek Oto
works (=returns some result) for all output modes except vertical.NameTag2 log:
Wembeddings error:
Wembeddings full log (with errors from TensorFlow at the beginning):
My captured payload sent to wembeddings (before encoding to ascii bytes):
{"model": "bert-base-multilingual-uncased-last4", "sentences": [["Kdy", "slav\u00ed", "sv\u00e1tek"], ["Oto"]]}
My environment for NameTag2: OS: MacOS 11.6.4 Container engine: Podman 3.4.4 using Dockerfile in branch nametag2 https://github.com/ufal/nametag/blob/nametag2/Dockerfile Python version in the image: Python 3.5.2 (affected probably 3.5 and lower)
My environment for Wembeddings: OS: MacOS 11.6.4 Container engine: Podman 3.4.4 using Dockerfile on the master branch https://github.com/ufal/wembedding_service/blob/master/Dockerfile
I discovered two more sentences which fails in the same way with the same error, but on the http://lindat.mff.cuni.cz/services/nametag/ they work normally, not sure why. The sentences are:
Chci najít transakci 1133.40 USD
Kdy ma svatek Vanda? Co Vratislav
Note: I'm a Czech and we can continue in Czech if you would prefer it that way :-)