|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynesketch.emotion.util.ParsingUtility
public class ParsingUtility
Utility class for some text parsing alghoritms
| Constructor Summary | |
|---|---|
ParsingUtility()
|
|
| Method Summary | |
|---|---|
static boolean |
containsFirst(java.lang.String container,
java.lang.String containee)
Returns true if the fist word begins with the second. |
static java.util.ArrayList<java.lang.String> |
parseSentences(java.lang.String text)
Pareses text into sentences. |
static java.util.ArrayList<java.lang.String> |
parseWords(java.lang.String text)
Pareses sentences into words. |
static java.util.List<java.lang.String> |
splitWords(java.lang.String text,
java.lang.String splitter)
Splits words by a given String argument (' ' or '-', to name two
examples). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParsingUtility()
| Method Detail |
|---|
public static java.util.ArrayList<java.lang.String> parseSentences(java.lang.String text)
text - String which represents the text
ArrayList of String instances representing the
sentencespublic static java.util.ArrayList<java.lang.String> parseWords(java.lang.String text)
text - String which represents the sentence
ArrayList of String instances representing the
words
public static java.util.List<java.lang.String> splitWords(java.lang.String text,
java.lang.String splitter)
String argument (' ' or '-', to name two
examples).
text - String which represents the textsplitter - String which represents the splitting mark (' ' or
'-', to name two examples)
List of String instances representing the splited
words
public static boolean containsFirst(java.lang.String container,
java.lang.String containee)
container - String which represents the container wordcontainee - String which represents the containee word
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||