|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.nlp.LingPipe
public class LingPipe
This class provides a common interface to the LingPipe toolkit.
It supports the following natural language processing tools:
| Field Summary | |
|---|---|
private static com.aliasi.sentences.SentenceModel |
sentenceModel
Sentence detection model. |
private static com.aliasi.tokenizer.TokenizerFactory |
tokenizerFactory
Tokenization model. |
| Constructor Summary | |
|---|---|
LingPipe()
|
|
| Method Summary | |
|---|---|
static void |
createSentenceDetector()
Creates models for the tokenizer and the sentence detector, if not already done. |
static void |
createTokenizer()
Creates a model for the tokenizer, if not done already. |
static java.lang.String[] |
sentDetect(java.lang.String text)
Splits a text into sentences. |
static java.lang.String[] |
tokenize(java.lang.String text)
Tokenizes a text. |
static java.lang.String |
tokenizeWithSpaces(java.lang.String text)
Tokenizes a text and concatenates the tokens with spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static com.aliasi.tokenizer.TokenizerFactory tokenizerFactory
private static com.aliasi.sentences.SentenceModel sentenceModel
| Constructor Detail |
|---|
public LingPipe()
| Method Detail |
|---|
public static void createTokenizer()
public static void createSentenceDetector()
public static java.lang.String[] tokenize(java.lang.String text)
text - text to tokenize
null, if the tokenizer is not
initializedpublic static java.lang.String tokenizeWithSpaces(java.lang.String text)
text - text to tokenize
null, if the
tokenizer is not initializedpublic static java.lang.String[] sentDetect(java.lang.String text)
text - sequence of sentences
null, if the
sentence detector is not initialized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||