|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.knowledgebooks.nlp_utils.Tokenizer
public class Tokenizer
Copyright 2002-2008 by Mark Watson. All rights reserved. This software is not public domain. It can be legally used under either of the following licenses: 1. KnowledgeBooks.com Non Commercial Royality Free License
| Constructor Summary | |
|---|---|
Tokenizer()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
wordsToList(java.lang.String s2)
utility to tokenize an input string into an Array of Strings |
static java.util.List<java.lang.String> |
wordsToList(java.lang.String s2,
int maxR)
utility to tokenize an input string into an Array of Strings - with a maximum # of returned words |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tokenizer()
| Method Detail |
|---|
public static java.util.List<java.lang.String> wordsToList(java.lang.String s2)
s2 - string containing words to tokenize
public static java.util.List<java.lang.String> wordsToList(java.lang.String s2,
int maxR)
s2 - string containing words to tokenizemaxR - maximum number of tokens to return
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||