public class TextAnalysis extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TextAnalysis.WordSpelling
The type Word spelling.
|
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_THRESHOLD
The constant DEFAULT_THRESHOLD.
|
| Modifier and Type | Method and Description |
|---|---|
static CharSequence |
combine(CharSequence left,
CharSequence right,
int minOverlap)
Combine string.
|
double |
entropy(CharSequence source)
Entropy double.
|
static double |
entropy(TrieNode tokenNode,
TrieNode contextNode) |
boolean |
isVerbose()
Is verbose boolean.
|
List<CharSequence> |
keywords(String source)
Keywords list.
|
TextAnalysis |
setVerbose(PrintStream verbose)
Sets verbose.
|
double |
spelling(String source)
Spelling double.
|
List<CharSequence> |
splitChars(String text)
Split chars list.
|
List<CharSequence> |
splitChars(String source,
double threshold)
Split chars list.
|
List<CharSequence> |
splitMatches(String text,
int minSize)
Split matches list.
|
public static final double DEFAULT_THRESHOLD
public static CharSequence combine(CharSequence left, CharSequence right, int minOverlap)
left - the leftright - the rightminOverlap - the min overlappublic List<CharSequence> keywords(String source)
source - the sourcepublic double spelling(String source)
source - the sourcepublic List<CharSequence> splitMatches(String text, int minSize)
text - the textminSize - the min sizepublic List<CharSequence> splitChars(String source, double threshold)
source - the sourcethreshold - the thresholdpublic double entropy(CharSequence source)
source - the sourcepublic boolean isVerbose()
public TextAnalysis setVerbose(PrintStream verbose)
verbose - the verbosepublic List<CharSequence> splitChars(String text)
text - the textCopyright © 2019 SimiaCryptus Software. All rights reserved.