source: gs3-extensions/maori-lang-detection/src/MaoriDetector.class@ 33336

Last change on this file since 33336 was 33336, checked in by ak19, 5 years ago

Major rewrite to make this class more useful to callers. MaoriDetector.java, soon to be renamed, can now be called with a filepath to a txt file or with the hyphen to indicate it should read text from std input (terminate with Ctrl-D as usual). Then it will predict whether the language of the text is in Maori or not depending on the min confidence cut-off value, which presently defaults to 0.5. Still need to support silent mode and update the README with instructions. Now the language detection model file needed by OpenNLP to do the language detection needs to live at OPENNLP_HOME/models/langdetect-183.bin

  • Property svn:mime-type set to application/octet-stream
File size: 9.5 KB

HTML preview not available, since no preview renderer could handle it.Try downloading the file instead.

Note: See TracBrowser for help on using the repository browser.