net.sf.jhunlang.jmorph.cl
Class Lem

java.lang.Object
  extended bynet.sf.jhunlang.jmorph.factory.Loader
      extended bynet.sf.jhunlang.jmorph.cl.Cl
          extended bynet.sf.jhunlang.jmorph.cl.Lem

public class Lem
extends Cl

Simple command line wrapper around the Lemmatizer class. Reads simple words from the stdin and prints it's stem and POS.


Field Summary
protected  Lemmatizer lemmatizer
           
protected  boolean stripDerivates
           
 
Fields inherited from class net.sf.jhunlang.jmorph.cl.Cl
count, DEFAULT_ENCODING, encoding, ENCODING, INPUT, OUTPUT
 
Fields inherited from class net.sf.jhunlang.jmorph.factory.Loader
adef, DEF_URL, dic, rules
 
Constructor Summary
Lem()
           
 
Method Summary
 void configureAndRun(java.lang.String[] args)
           
static void main(java.lang.String[] args)
          Start reading words separated by newlines from the standard input and write their lemmas to the standard output.
protected  void process(java.lang.String word, java.io.PrintWriter p)
          Process line and write the result to p.
 
Methods inherited from class net.sf.jhunlang.jmorph.cl.Cl
getDefaultEcoding, getEncoding, run, run
 
Methods inherited from class net.sf.jhunlang.jmorph.factory.Loader
getDefaultUrl, getDic, getRules, load, loadDictionaries, loadRules, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lemmatizer

protected Lemmatizer lemmatizer

stripDerivates

protected boolean stripDerivates
Constructor Detail

Lem

public Lem()
Method Detail

configureAndRun

public void configureAndRun(java.lang.String[] args)
                     throws java.io.IOException,
                            ParseException
Throws:
java.io.IOException
ParseException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Start reading words separated by newlines from the standard input and write their lemmas to the standard output.

Parameters:
args - the command line parameters specifying the definition file.
Throws:
java.lang.Exception

process

protected void process(java.lang.String word,
                       java.io.PrintWriter p)
Description copied from class: Cl
Process line and write the result to p.

Specified by:
process in class Cl
Parameters:
word - the line to process
p - the writer to the result to


Copyright © 2005 jmorph developers. All Rights Reserved.