Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Till NOw:
- echo "<div><i>Hello</i> <b>world</b></div>" |./deshtml | lt-proc '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.automorf.bin' | apertium-tagger -g $2 '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.prob' | apertium-pretransfer | apertium-transfer -n '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.genitive.t1x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.genitive.bin' | lt-proc -b '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.autobil.bin' | lrx-proc -m '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.autolex.bin' | apertium-transfer -b '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.t1x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.t1x.bin' 2> /dev/null
- gives:
- [<div>]^default<default>{[{<i>}]^Hola<ij>$}$[] ^Adj<SA><mf><ND>{[{<b>}]^mundial<adj><2><3>$}$[][][</div>]
- Which is at all what we wanted, without any error or anything.
- But when I add
- echo "<div><i>Hello</i> <b>world</b></div>" |./deshtml | lt-proc '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.automorf.bin' | apertium-tagger -g $2 '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.prob' | apertium-pretransfer | apertium-transfer -n '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.genitive.t1x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.genitive.bin' | lt-proc -b '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.autobil.bin' | lrx-proc -m '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.autolex.bin' | apertium-transfer -b '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.t1x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.t1x.bin' | apertium-interchunk '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.t2x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.t2x.bin' 2 /dev/null
- It gives:
- [<div>]^default<default>{[{<i>}]^Hola<ij>$}$[] ^Adj<SA><mf><sg>{[{<b>}]^mundial<adj><2><3>$}$[][][</div>]
- But when adding the postchunk module we get seg fault.
- echo "<div><i>Hello</i> <b>world</b></div>" |./deshtml | lt-proc '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.automorf.bin' | apertium-tagger -g $2 '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.prob' | apertium-pretransfer | apertium-transfer -n '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.genitive.t1x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.genitive.bin' | lt-proc -b '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.autobil.bin' | lrx-proc -m '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.autolex.bin' | apertium-transfer -b '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.t1x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.t1x.bin' | apertium-interchunk '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.t2x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.t2x.bin' | apertium-postchunk '/home/speedy/FLAME/Apertium/apertium-en-es/apertium-en-es.en-es.t3x' '/home/speedy/FLAME/Apertium/apertium-en-es/en-es.t3x.bin' 2> /dev/null
- Gives:
- tt_word, tmpword.size()==0 word=Hello<ij>
- tt_word, tmpword.size()==0 word=world<adj>
- tt_eof, tmpword.size()==0 word=
- tt_word, tmpword.size()==0 word=Hello<ij>/Hola<ij>
- tt_word, tmpword.size()==0 wo
- rTdo=kweonr lids< adj>/munddeifaalu<latd<jd>e<fmafu>l
- t>{[{<if>i}n]a^lHso lfao<uinjd>,$ }las
- t_otutt_ wsoertd ,t ot mpwor2d
- .sizet(t)_=e=of, 0tm pwwoorrdd=.sdiezfea(u)l=t=<1d ewfoarudl=t>
- {[{<ia>p}p]l^yHRoullae<,i jl>i$m}i
- t=1
- word[0]=world<adj>/mundial<adj><mf> format[0]=[{<b>}] freeblank[0]=
- processRule
- tt_eof, tmpwo
- rTdo.kseinz ei(s) ==Ad0j <wSoAr>d<=m
- f><ND>{[{<b>}]^mundial<adj><2><3>$}
- tt_word, tmpword.size()==0 word=Adj<SA><mf><ND>{[{<b>}]^mundial<adj><2><3>$}
- finals found, last_out set to: 2
- [<div>]
- Token is [][][</div>]
- tt_eof, tmpword.size()==1 word=[][][</div>]
- applyRule: 1
- Word[0] = Adj<SA><mf><ND>{[{<b>}]^mundial<adj><2><3>$}
- blank is []
- Token is [][][</div>]
- tt_eof, tmpword.size()==0 word=[][][</div>]
- Segmentation fault (core dumped)
Add Comment
Please, Sign In to add comment