LanguageTools Inflection Analyzer/Generator:
Installation and Integration
Quick Demo Start
After installing the license, simply run one of the delivered scripts: 'start-demo.sh' (under Unix based systems), or 'start-demo.bat' (under Windows systems).
Detailed API information is available through the corresponding javadoc documentation.
- inflangen.jar (archive file containing code)
- XYZnInflAnGen.tra (Compiled transducer data)
- XYZnInflAnGen.tab (Feature table)
- com/canoo/wmtrans/inflangen/XYZIntegrationDemo.java (Source file used to test and show the integration in your own code)
Please note: XYZ in these file names will be either Ger, Eng, Ita or Fre, representing the language of your product. The n in the string XYZn will be either 1 (if you use the evaluation version of this product) or 3 (if you use the full version).
If you are using a licensed version, extract the file "license.cfg" from the received license archive "license.zip" and move it into the same directory as the jar file.
Proxy ConfigurationIf you are using a proxy server, configure your LanguageTools product using the delivered ProxyConf program, which will generate the file "proxy.cfg" in the same directory as the jar file. Anonymous and basic authentication protocols are supported.
Here is how to call it:
java -cp inflangen.jar com.canoo.wmtrans.util.ProxyConf
Alternatively, you can provide following customized System properties:
Installing and Running Integration Test
To install and run the integration test:
Compile the integration test file
javac -classpath .:inflangen.jar com/canoo/wmtrans/inflangen/XYZIntegrationDemo.java
Run the integration test program
java -cp .:inflangen.jar com.canoo.wmtrans.inflangen.XYZIntegrationDemo XYZnInflAnGen.tra XYZnInflAnGen.tabwhere XYZnInflAnGen.tra and XYZnInflAnGen.tab represent the two delivered data documents.
(Please note that Unix/Linux and Windows use different classpath seperators:
Unix/Linux => ':', Windows => ';')