net.sf.jhunlang.jmorph.cl
Class Lem
java.lang.Object
net.sf.jhunlang.jmorph.factory.Loader
net.sf.jhunlang.jmorph.cl.Cl
net.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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lemmatizer
protected Lemmatizer lemmatizer
stripDerivates
protected boolean stripDerivates
Lem
public Lem()
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 processp - the writer to the result to
Copyright © 2005 jmorph developers. All Rights Reserved.