Hi Mikel,
Thank you. All works except the last step:
lt-proc $1 /home/per/Repository/apertium-sv-da/da-sv.autogen.bin 

I run:
echo "Vi behöver en annan boll" | lt-proc sv-da.automorf.bin | 

apertium-tagger -g $2 sv-da.prob | 
apertium-pretransfer | 
lt-proc -b sv-da.autobil.bin | 
apertium-transfer -b apertium-sv-da.sv-da.t1x  sv-da.t1x.bin | 
lt-proc $1 sv-da.autogen.bin  | 
less

and get:
std::exception

But if I run the ordinary way everything works OK:
echo "Vi behöver en annan boll" | apertium -u -d . da-sv

BTW How do I pass the -u if I run the commands manually?

Yours,
Per Tunedal



On Wed, Feb 18, 2015, at 11:54, Mikel L. Forcada wrote:
> Hi, Per.
> When the modes.xml file is compiled, a set of shell scripts are 
> generated in directory modes/ , one for each mode. Checking these out 
> may give you some inspiration on how to run commands manually.
> 
> HTH
> 
> Mikel
> 
> 
> El 18/02/15 a les 09:42, Per Tunedal ha escrit:
> > Hi,
> > I would like to explore the pipeline Apertium uses for translation. I
> > can see the steps in the modes.xml file, but I cannot figure out how to
> > write the commands to run them manually. How do I get the output of
> > lt-proc as it looks when it is forwarded to the tagger?
> >
> >    <mode name="swe-dan-bytecode" install="yes">
> >      <pipeline>
> >        <program name="lt-proc">
> >          <file name="swe-dan.automorf.bin"/>
> >        </program>
> >        <program name="apertium-tagger -g $2">
> >          <file name="swe-dan.prob"/>
> >        </program>
> >
> > The following doesn't work:
> >
> > echo "Vi behöver en annan boll" | lt-proc swe-dan.automorf.bin | less
> >
> > What should I enter instead?
> >
> > Yours,
> > Per Tunedal
> >
> > ------------------------------------------------------------------------------
> > 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
> 
> 
> -- 
>   Mikel L. Forcada (http://www.dlsi.ua.es/~mlf/)
> Departament de Llenguatges i Sistemes Informàtics
> Universitat d'Alacant
> E-03071 Alacant, Spain
> Phone: +34 96 590 9776
> Fax: +34 96 590 9326
> 
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to