$ curl 'http://localhost:8080/listPairs'
{"responseStatus": 200, "responseDetails": null, "responseData":
[{"sourceLanguage": "tur", "targetLanguage": "kaz"}, {"sourceLanguage":
"kaz", "targetLanguage":
"tur"}]}sevilay@sevilay-linux:~/engine-code/apertium-apy$


$ curl 'http://localhost:8080/list?q=analyzers'
{"tur-kaz": "tur-kaz-morph", "kaz-tur":
"kaz-tur-morph"}sevilay@sevilay-linux:~/engine-code/apertium-apy$

$ curl 'http://localhost:8080/list?q=generators'
{"kaz-tur": "kaz-tur-generador"}sevilay@sevilay-linux
:~/engine-code/apertium-apy$

$ curl 'http://localhost:8080/list?q=taggers'
{"tur-kaz": "tur-kaz-tagger", "kaz-tur":
"kaz-tur-tagger"}sevilay@sevilay-linux:~/engine-code/apertium-apy$

$ curl 'http://localhost:8080/translate?langpair=kaz|tur&q=Сен+бардың+ба
<http://localhost:8080/translate?langpair=kaz%7Ctur&q=%D0%A1%D0%B5%D0%BD+%D0%B1%D0%B0%D1%80%D0%B4%D1%8B%D2%A3+%D0%B1%D0%B0>
?'
{"responseStatus": 200, "responseDetails": null, "responseData":
{"translatedText": "Sen gittin
m\u0131?"}}sevilay@sevilay-linux:~/engine-code/apertium-apy$


$ curl -G --data "lang=kaz&q=Сен+бардың+ба?" http://localhost:8080/analyze
{"message": "Bad Request", "status": "error", "explanation": "That mode is
not installed", "code": 400}sevilay@sevilay-linux
:~/engine-code/apertium-apy$

$ curl -G --data "lang=kaz&q=^сен<v><tv><imp><p2><sg>$"
http://localhost:8080/generate
{"message": "Bad Request", "status": "error", "explanation": "That mode is
not installed", "code": 400}sevilay@sevilay-linux
:~/engine-code/apertium-apy$

$ curl '
http://localhost:8080/perWord?lang=kaz-tur&modes=morph&q=Сен+бардың+ба
<http://localhost:8080/perWord?lang=kaz-tur&modes=morph&q=%D0%A1%D0%B5%D0%BD+%D0%B1%D0%B0%D1%80%D0%B4%D1%8B%D2%A3+%D0%B1%D0%B0>
?'

Exception in thread Thread-8:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File
"/home/sevilay/engine-code/apertium-apy/apertium_apy/handlers/per_word.py",
line 36, in process_per_word
    morph_lexical_units = remove_dot_from_deformat(query,
re.findall(lexical_unit_re, analysis))
  File "/usr/lib/python3.5/re.py", line 213, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or bytes-like object
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File
"/home/sevilay/engine-code/apertium-apy/apertium_apy/handlers/per_word.py",
line 141, in worker
    callback(result.get(timeout=self.timeout))
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
    raise self._value
TypeError: expected string or bytes-like object


These all of the outputs I get and I don't know where is the problem, I'll
happy for your help.

Sevilay




On Fri, Jun 15, 2018 at 10:21 PM, Kevin Brubeck Unhammer <unham...@fsfe.org>
wrote:

> Sevilay Bayatli <sevilaybaya...@gmail.com>
> čálii:
>
> > curl '
> > http://localhost:8080/perWord?lang=kk-tr&modes=morph+
> biltrans+tagger&q=үйінде+қалыпты
> <http://localhost:8080/perWord?lang=kk-tr&modes=morph+biltrans+tagger&q=%D2%AF%D0%B9%D1%96%D0%BD%D0%B4%D0%B5+%D2%9B%D0%B0%D0%BB%D1%8B%D0%BF%D1%82%D1%8B>
> > <http://localhost:8080/perWord?lang=kk-tr&modes=
> morph+biltrans+tagger&q=%D2%AF%D0%B9%D1%96%D0%BD%D0%B4%D0%
> B5+%D2%9B%D0%B0%D0%BB%D1%8B%D0%BF%D1%82%D1%8B>
> > '
> >
> > I get this:
> >
> > [W 180615 15:36:10 web:2106] 400 GET
> > /perWord?lang=en-es&modes=morph+biltrans+tagger&q=үй
> Ñнде+қалыпты
> > (127.0.0.1) 118021.36ms
>
>
> Do you actually have morph+biltrans+tagger modes installed for kk-tr?
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to