Hello,
I've successfully installed and am able to run the Apertium APY. I'm able to
detect the list of pairs successfully but when I try and do translation,
following happens:
Input: curl 'http://localhost:2737/translate?langpair=en|eo&q=This is a test'
Output: {"code": 500, "message": "Internal Error", "status": "error",
"explanation": ""}
I'm attaching the server log as a txt file. I'm new to the working, hence need
some help.
Thanks and Regards,Hitesh Ramani
From: [email protected]
To: [email protected]
Date: Sun, 22 Feb 2015 02:28:00 +0530
Subject: Re: [Apertium-stuff] GSOC 2015: Student Introduction
Thank you Tino, I will do that and respond back.
Regards,Hitesh Ramani
Date: Sat, 21 Feb 2015 21:54:06 +0100
From: [email protected]
To: [email protected]
Subject: Re: [Apertium-stuff] GSOC 2015: Student Introduction
On 21 February 2015 at 21:40, hitesh ramani <[email protected]> wrote:
I've gone through the Projects Idea page and the project that grabbed my
interest was Offline, desktop GUI for Apertium.
Please guide me more on the project.
Look at
http://wiki.apertium.org/wiki/Ideas_for_Google_Summer_of_Code/Desktop_GUI and
do the Coding Challenge.
Use the binary Apertium packages if you can. Ask here or on IRC if you run into
issues.
-- Tino Didriksen
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff
[I 150224 04:29:27 servlet:633] 14 pair modes found
[I 150224 04:29:27 servlet:633] 0 generator modes found
[I 150224 04:29:27 servlet:633] 2 analyzer modes found
[I 150224 04:29:27 servlet:633] 2 tagger modes found
[I 150224 04:29:27 servlet:716] Serving at http://localhost:2737
[I 150224 04:29:27 process:124] Starting 4 processes
[I 150224 04:29:33 servlet:242] eng-epo not in pipelines of this process,
starting â¦
Error: Cannot not open file
'/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.automorf.bin'.
Error: cannot open file '/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.prob'
apertium-tagger: HMM/LSW part-of-speech tagging and training program
GENERIC USAGE: apertium-tagger[-d] <OPTION>=[PARAM] [FILES]
USAGE: apertium-tagger[-d] [-w] -t=n DIC CRP TSX TAGGER_DATA
apertium-tagger[-d] [-w] -s=n DIC CRP TSX TAGGER_DATA HTAG UNTAG
apertium-tagger[-d] [-w] -r=n CRP TAGGER_DATA
apertium-tagger[-d] [-w] -g [-f] TAGGER_DATA [INPUT [OUTPUT]]
Where OPTIONS are:
-w, --sliding-window: use the Sliding-Window training and tagging algorithm,
or if not specified, use the HMM algorithm by default
-t, --train=n: performs n iterations of training (unsupervised)
-s, --supervised=n: initializes parameters against a hand-tagged text
(supervised),
and trains it with n iterations
-r, --retrain=n: retrains the model with n aditional iterations
(unsupervised)
-g, --tagger: tags input text
-p, --show-superficial: show superficial forms in the output stream
-f, --first: used in conjuntion with -g (--tagger) makes the tagger
give all lexical forms of each word, with the chosen
one in the first place (after the lemma)
-d, --debug: print error mesages when tagging input text
-m, --mark: generate marks of solved ambiguities
-z, --null-flush: flush output stream when reading '\0' characters
And FILES are:
DIC: full expanded dictionary file
CRP: training text corpus file
TSX: tagger specification file, in XML format
TAGGER_DATA: tagger data file, built in the training and used while
tagging
HTAG: hand-tagged text corpus
UNTAG: untagged text corpus, morphological analysis of HTAG
corpus to use both jointly with -s option
INPUT: input file, stdin by default
OUTPUT: output file, stdout by default
Error: can't stat file
'/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.genitive.t1x.bin'.
Error: can't stat file
'/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.autobil.bin'.
Error: can't stat file
'/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.antaux_t2x.bin'.
Error: can't stat file '/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.t2x.bin'.
Error: can't stat file
'/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.antaux2_t2x.bin'.
Error: can't stat file '/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.t3x.bin'.
Error: Cannot not open file
'/tmp/buildd/apertium-eo-en-1.0.0~r57551/en-eo.autogen.bin'.
[E 150224 04:29:33 web:1421] Uncaught exception GET
/translate?langpair=en|eo&q=Hello (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:2737', method='GET',
uri='/translate?langpair=en|eo&q=Hello', version='HTTP/1.1',
remote_ip='127.0.0.1', headers={'Host': 'localhost:2737', 'User-Agent':
'curl/7.35.0', 'Accept': '*/*'})
Traceback (most recent call last):
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/web.py",
line 1348, in _execute
result = yield result
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 807, in run
value = future.result()
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/concurrent.py",
line 209, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 810, in run
yielded = self.gen.throw(*sys.exc_info())
File "./servlet.py", line 280, in get
translated = yield translation.translate(toTranslate, lock, pipeline,
commands)
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 807, in run
value = future.result()
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/concurrent.py",
line 209, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 810, in run
yielded = self.gen.throw(*sys.exc_info())
File "/home/hitesh/GSOC/apertium-apy/translation.py", line 171, in
translate
parts = yield [translateNULFlush(part, lock, pipeline) for part in
allSplit]
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 807, in run
value = future.result()
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/concurrent.py",
line 209, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 606, in callback
result_list = [i.result() for i in children]
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 606, in <listcomp>
result_list = [i.result() for i in children]
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/concurrent.py",
line 209, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/gen.py",
line 812, in run
yielded = self.gen.send(value)
File "/home/hitesh/GSOC/apertium-apy/translation.py", line 124, in
translateNULFlush
proc_in.stdin.write(bytes('\0', "utf-8"))
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/iostream.py",
line 356, in write
self._check_closed()
File
"/home/hitesh/GSOC/apertium-apy/py3env/lib/python3.4/site-packages/tornado/iostream.py",
line 864, in _check_closed
raise StreamClosedError("Stream is closed")
tornado.iostream.StreamClosedError: Stream is closed
[E 150224 04:29:33 web:1825] 500 GET /translate?langpair=en|eo&q=Hello
(127.0.0.1) 35.35ms------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff