LanguageTools Word Formation 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).
API Documentation
Detailed API information is available through the corresponding javadoc
documentation.
Please note that the analysis methods expect the query parameter to be a word in its citation form.
Delivered Documents
- wfangen.jar (archive file containing code)
- XYZnWFAnGen.tra (Compiled transducer data)
- XYZnWFAnGen.tab (Feature table)
- com/canoo/wmtrans/wfangen/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 or Ita, 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).
License Installation
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 Configuration
If 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 wfangen.jar com.canoo.wmtrans.util.ProxyConf
Alternatively, you can provide following customized System properties:
- http.proxyHost
- http.proxyPort
- http.proxyPlainAuthentication
Installing and Running the Integration Test
To install and run the integration test:
-
Compile the integration test file
javac -classpath .:wfangen.jar com/canoo/wmtrans/wfangen/XYZIntegrationDemo.java
-
Run the integration test program,
java -cp .:wfangen.jar com.canoo.wmtrans.wfangen.XYZIntegrationDemo XYZnWFAnGen.tra XYZnWFAnGen.tab
where XYZnWFAnGen.tra and XYZnWFAnGen.tab represent the two delivered data documents.
(Please note that Unix/Linux and Windows use different classpath seperators:
Unix/Linux => ':', Windows => ';')