Hi Tom , Thanks for the reply. 1.Yes I did run this with moses binary.Here is the command and result.
$ echo '我 要 去 <xjunlphaha translation="ئوردا">学校</xjunlphaha>' | /work/mosesdecoder/bin/moses -xml-input exclusive -f /tmp/shared/moses-training/chuy_0826-03:04/model/moses.ini I found out that chinese and arabic letters could not be shown properly , so I added my command to the last comment in the issue. https://github.com/moses-smt/mosesdecoder/issues/73 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ FeatureFunction: UnknownWordPenalty0 start: 0 end: 0 line=WordPenalty FeatureFunction: WordPenalty0 start: 1 end: 1 line=PhrasePenalty FeatureFunction: PhrasePenalty0 start: 2 end: 2 line=PhraseDictionaryMemory name=TranslationModel0 table-limit=20 num-features=4 path=/tmp/shared/moses-training/chuy_0826-03:04/model/rule-table.gz input-factor=0 output-factor=0 FeatureFunction: TranslationModel0 start: 3 end: 6 line=PhraseDictionaryMemory name=TranslationModel1 num-features=1 path=/tmp/shared/moses-training/chuy_0826-03:04/model/glue-grammar input-factor=0 output-factor=0 FeatureFunction: TranslationModel1 start: 7 end: 7 line=SRILM name=LM0 factor=0 path=/tmp/shared/27uy.o5.lm order=5 FeatureFunction: LM0 start: 8 end: 8 Loading UnknownWordPenalty0 Loading WordPenalty0 Loading PhrasePenalty0 Loading LM0 /tmp/shared/27uy.o5.lm: line 3483: warning: non-zero probability for <unk> in closed-vocabulary LM Loading TranslationModel0 Start loading text phrase table. Moses format : [4.729] seconds Reading /tmp/shared/moses-training/chuy_0826-03:04/model/rule-table.gz ----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100 **************************************************************************************************** Loading TranslationModel1 Start loading text phrase table. Moses format : [760.530] seconds Reading /tmp/shared/moses-training/chuy_0826-03:04/model/glue-grammar ----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100 **************************************************************************************************** max-chart-span: 20 max-chart-span: 1000 IO from STDOUT/STDIN Created input-output object : [760.594] seconds *Unknown input type: 3* Name:moses VmPeak:22480296 kB VmRSS:22437712 kB RSSMax:22450000 kB user:762.409 sys:20.947 CPU:783.356 real:783.449 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 2.Text Does not include non-printing ltr , rtl chars. Many Thanks. > Message: 4 > Date: Fri, 05 Sep 2014 19:28:56 +0700 > From: Tom Hoar <[email protected]> > Subject: Re: [Moses-support] mosesserver -xml-input exclusive > segmentation fault > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="utf-8" > > Have you run this through the standard moses binary to see if it's a > mosesserver or shared xml-input problem? > > Also, you're forcing Chinese characters to Arabic/Persian script. Does > your text include the non-printing left-to-right and right-to-left > characters? > > > > > > On 09/05/2014 06:54 PM, Yusup Ashrap wrote: > > Hi All, > > > > I am having problems with using mosesserver with xml-input flag. > > mosesserver works fine without adding tagged words, but with tagged > > words it quits with a segmentation fault. > > > > I added detailed issue on github. > > https://github.com/moses-smt/mosesdecoder/issues/73 > > > > I started server using this following command. > > #./mosesserver -xml-input exclusive -f moses.ini > > > > and I invoke translation service with my python xml-rpc code. > > > > > > > > | '? ? ? <np translation="?????" >??</np>'| > > > > after this mosesserver quitted with a segmentation fault without any > > detailed stacktrace. > > > > > > > > > > Error is just one line and I could get any related info from google or > > mailing list. > > > > Could you tell me what possibly went wrong or what should I need to > > make this work? > > > > > >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
