public class CnSimpleDocumentParser extends EngDocumentParser
Title:
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
static String |
punctuations |
defParaDelimitor, defSentDelimitor, defWordDelimitor, paraDelimitor, sentDelimitor, wordDelimitor| Constructor and Description |
|---|
CnSimpleDocumentParser() |
| Modifier and Type | Method and Description |
|---|---|
Sentence |
parseSentence(String sentence)
Parses a text into a Sentence object
|
ArrayList |
parseTokens(String content)
Prases a text into a sequence of tokens.
|
protected Word |
parseWord(String content) |
isApostrophesAsWord, isNumber, isPeriodAsToken, isPeriodAsWord, isSentencePeriod, parse, parseParagraphpublic static final String punctuations
public Sentence parseSentence(String sentence)
DocumentParserparseSentence in interface DocumentParserparseSentence in class EngDocumentParsersentence - the text for parsingprotected Word parseWord(String content)
parseWord in class EngDocumentParserpublic ArrayList parseTokens(String content)
DocumentParserparseTokens in interface DocumentParserparseTokens in class EngDocumentParsercontent - the text for parsingCopyright © 2018 JULIE Lab, Germany. All rights reserved.