public class MorphaStemmer extends Object
Constructor and Description |
---|
MorphaStemmer() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static String |
morpha(String text,
boolean tags)
Run the morpha algorithm on the specified string.
|
static String |
stem(String text)
Stem the supplied text, splitting on whitespace to break it into words.
|
static String |
stemToken(String token)
Stem the supplied token.
|
static String |
stemToken(String token,
String postag)
Stem the supplied token using supplemental postag information.
|
public static String stem(String text)
public static String stemToken(String token)
IllegalArgumentException
- token contains whitespacepublic static String stemToken(String token, String postag)
IllegalArgumentException
- token contains whitespacepublic static String morpha(String text, boolean tags)
public static void main(String[] args)
Copyright © 2017. All rights reserved.