Joel Wenzel <[email protected]> writes: > Hi, > > I would like to be able to pass a word and part of speech to Apertium > and get a translation back. The APY indicates I can pass text using > translate, but it is a phrase, not a word, and I'm guessing the part > of speech gets determined by the phrase. > > For example - these two requests may return different results in a > different language but if I only am passing in the word, how can I > specify to apertium which translation I want back. > * buffalo, verb > * buffalo, noun > > Also, if there is a command line version, it would be much easier for > me. I can find things on the wiki that imply that there is a command > line but I'm having trouble finding solid docs for it?
Assuming you're on Ubuntu, here's a full procedure: # Install nightlies of lttoolbox+apertium; requires sudo: wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash sudo apt-get -f install apertium-all-dev # download and compile some language data for english: svn checkout https://svn.code.sf.net/p/apertium/svn/incubator/apertium-eng_feil cd apertium-eng_feil ./autogen.sh make -j4 # Try it out: echo buffalo cake | apertium -d . eng-morph -- Kevin Brubeck Unhammer GPG: 0x766AC60C
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
