Changeset 33398
- Timestamp:
- 2019-08-11T19:35:57+12:00 (4 years ago)
- Location:
- gs3-extensions/maori-lang-detection
- Files:
-
- 3 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/maori-lang-detection/README.txt
r33377 r33398 26 26 (These are just zip files, but have to remain with the .bin extension in order for OpenNLP to use them. If you ever wish to see the contents of such a .bin file, you can rename to .zip and use the Archive Manager or other Zip tool to inspect the contents.) 27 27 28 You can optionally put the file models-trainingdata-and-sampletxts/29 30 28 31 29 2. Next extract the apache-opennlp-1.9.1-bin.tar.gz. … … 40 38 4. If you want to recompile, go up into the checked out maori-lang-detection folder's "src" subfolder. To compile, make sure you have the JDK7+ bin folder on your PATH environment variable. 41 39 Still in the SAME terminal as where you set up the OPENNLP_HOME environment in step 3, you can now run: 42 maori-lang-detection/src$ javac -cp ".:$OPENNLP_HOME/lib/opennlp-tools-1.9.1.jar" MaoriTextDetector.java 43 40 maori-lang-detection/src$ javac -cp ".:$OPENNLP_HOME/lib/opennlp-tools-1.9.1.jar" org/greenstone/atea/MaoriTextDetector.java 44 41 45 42 5. To run the MaoriTextDetector program, you will need the JDK or JRE 7+ bin folder on your PATH and still in the SAME terminal as where you set up the OPENNLP_HOME environment in step 3, 46 43 type one of the following: 47 maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" MaoriTextDetector --help44 maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" org.greenstone.atea.MaoriTextDetector --help 48 45 (prints the usage, including other options) 49 46 50 maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" MaoriTextDetector --file <full/path/to/textfile>47 maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" org.greenstone.atea.MaoriTextDetector --file <full/path/to/textfile> 51 48 52 maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" MaoriTextDetector -49 maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" org.greenstone.atea.MaoriTextDetector - 53 50 which expects text to stream in from standard input. 54 If entering text manually, then remember to press Ctrl-D to indicate the usual end of StdIn.51 If entering text manually, then remember to press Ctrl-D to indicate the end of StdIn as usual. 55 52 56 53
Note:
See TracChangeset
for help on using the changeset viewer.