|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.llnl.ontology.util.StringUtils
public class StringUtils
A collection of string utilities.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static int |
findOverlap(String[] tokens1,
int i,
String[] tokens2,
int j)
Determines the length of a sequence overlap in tokens1 |
static int |
tokenOverlap(String[] tokens1,
String[] tokens2)
Returns the number of tokens that overlap between tokens1 and
tokens2 |
static int |
tokenOverlapExp(String[] tokens1,
String[] tokens2)
Returns the number of tokens that overlap between tokens1 and
tokens2, but whenever a sequence of tokens overlap, their score
is the sequence length to the power of two. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static int tokenOverlap(String[] tokens1,
String[] tokens2)
tokens1 and
tokens2
public static int tokenOverlapExp(String[] tokens1,
String[] tokens2)
tokens1 and
tokens2, but whenever a sequence of tokens overlap, their score
is the sequence length to the power of two.
public static int findOverlap(String[] tokens1,
int i,
String[] tokens2,
int j)
tokens1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||