Changeset 33398

Show
Ignore:
Timestamp:
11.08.2019 19:35:57 (11 days ago)
Author:
ak19
Message:

Committing the actual package structure and the updated README after changing the package structure and instructions on compiling/running as there will be more Java classes.

Location:
gs3-extensions/maori-lang-detection
Files:
3 added
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • gs3-extensions/maori-lang-detection/README.txt

    r33377 r33398  
    2626(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.) 
    2727 
    28 You can optionally put the file models-trainingdata-and-sampletxts/ 
    29  
    3028 
    31292. Next extract the apache-opennlp-1.9.1-bin.tar.gz. 
     
    40384. 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. 
    4139Still 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 
    4441 
    45425. 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, 
    4643type one of the following: 
    47    maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" MaoriTextDetector --help 
     44   maori-lang-detection/src$ java -cp ".:$OPENNLP_HOME/lib/*" org.greenstone.atea.MaoriTextDetector --help 
    4845   (prints the usage, including other options)                   
    4946  
    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> 
    5148  
    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 - 
    5350       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. 
    5552 
    5653