Package | Description |
---|---|
org.simmetrics | |
org.simmetrics.simplifiers | |
org.simmetrics.utils |
Modifier and Type | Method and Description |
---|---|
static StringMetric |
StringMetrics.create(Metric<String> metric,
Simplifier simplifier)
Constructs a new composite string metric.
|
static StringMetric |
StringMetrics.createForListMetric(Metric<List<String>> metric,
Simplifier simplifier,
Tokenizer tokenizer)
Creates a new composite string metric.The tokenizer is used to tokenize
the simplified strings.
|
static StringMetric |
StringMetrics.createForSetMetric(Metric<Set<String>> metric,
Simplifier simplifier,
Tokenizer tokenizer)
Creates a new composite string metric.The tokenizer is used to tokenize
the simplified strings.
|
StringMetricBuilder.StringMetricSimplifierStep |
StringMetricBuilder.StringMetricInitialSimplifierStep.simplify(Simplifier simplifier)
Adds a simplifier to the metric.
|
StringMetricBuilder.StringMetricSimplifierStep |
StringMetricBuilder.StringMetricSimplifierStep.simplify(Simplifier simplifier)
Adds a simplifier to the metric.
|
StringMetricBuilder.CollectionMetricSimplifierStep<T> |
StringMetricBuilder.CollectionMetricInitialSimplifierStep.simplify(Simplifier simplifier)
Adds a simplifier to the metric.
|
StringMetricBuilder.CollectionMetricSimplifierStep<T> |
StringMetricBuilder.CollectionMetricSimplifierStep.simplify(Simplifier simplifier)
Adds a simplifier to the metric.
|
Modifier and Type | Class and Description |
---|---|
class |
Case
Deprecated.
use
Simplifiers.toLowerCase() and
Simplifiers.toUpperCase() instead. |
static class |
Case.Lower
Deprecated.
Lower case simplifier.
|
static class |
Case.Upper
Deprecated.
Upper case simplifier.
|
class |
Caverphone1
Encodes a string into a Caverphone 1.0 value.
|
class |
Caverphone2
Encodes a string into a Caverphone 2.0 value.
|
class |
ColognePhonetic
Encodes a string into a Cologne Phonetic value.
|
class |
DaitchMokotoffSoundex
Encodes a string into a Daitch-Mokotoff Soundex value.
|
class |
DoubleMetaphone
Encodes a string into a double metaphone value.
|
class |
MatchRatingApproach
Match Rating Approach Phonetic Algorithm Developed by Western Airlines in 1977.
|
class |
Metaphone
Encodes a string into a Metaphone value.
|
class |
NonDiacritics
Deprecated.
Use
Simplifiers.removeDiacritics() instead. |
class |
Nysiis
Encodes a string into a NYSIIS value.
|
class |
RefinedSoundex
Encodes a string into a Refined Soundex value.
|
class |
Soundex
Encodes a string into a Soundex value.
|
class |
WordCharacters
Deprecated.
use
Simplifiers.replaceNonWord() instead. |
Modifier and Type | Method and Description |
---|---|
static Simplifier |
Simplifiers.chain(List<Simplifier> simplifiers)
Constructs a new chain of simplifiers.
|
static Simplifier |
Simplifiers.chain(Simplifier simplifier,
Simplifier... simplifiers)
Constructs a new chain of simplifiers.
|
static Simplifier |
Simplifiers.removeAll(Pattern pattern)
Returns a simplifier that removes every subsequence of the input that
matches the pattern.
|
static Simplifier |
Simplifiers.removeAll(String regex)
Returns a simplifier that removes every subsequence of the input that
matches the regex.
|
static Simplifier |
Simplifiers.removeDiacritics()
Returns a simplifier that removes diacritics.
|
static Simplifier |
Simplifiers.removeNonWord()
Returns a simplifier that removes all non-word
[^0-9a-zA-Z]
characters. |
static Simplifier |
Simplifiers.removeNonWord(String replacement)
Returns a simplifier that removes all consecutive non-word characters
[^0-9a-zA-Z]+ and replaces them with the replacement . |
static Simplifier |
Simplifiers.replaceAll(Pattern pattern,
String replacement)
Returns a simplifier that replaces every subsequence of the input that
matches the pattern with the given replacement string.
|
static Simplifier |
Simplifiers.replaceAll(String regex,
String replacement)
Returns a simplifier that replaces every subsequence of the input that
matches the regex with the given replacement string.
|
static Simplifier |
Simplifiers.replaceNonWord()
Returns a simplifier that replaces all individual non-word characters
[^0-9a-zA-Z] with a space. |
static Simplifier |
Simplifiers.replaceNonWord(String replacement)
Returns a simplifier that replaces all individual non-word characters
[^0-9a-zA-Z] with the replacement . |
static Simplifier |
Simplifiers.toLowerCase()
Returns a simplifier that transforms all upper case characters into their
lower case equivalent.
|
static Simplifier |
Simplifiers.toLowerCase(Locale l)
Returns a simplifier that transforms all upper case characters into their
lower case equivalent.
|
static Simplifier |
Simplifiers.toUpperCase()
Returns a simplifier that transforms all lower case characters into their
upper case equivalent.
|
static Simplifier |
Simplifiers.toUpperCase(Locale l)
Returns a simplifier that transforms all lower case characters into their
upper case equivalent.
|
Modifier and Type | Method and Description |
---|---|
static Simplifier |
Simplifiers.chain(Simplifier simplifier,
Simplifier... simplifiers)
Constructs a new chain of simplifiers.
|
static Simplifier |
Simplifiers.chain(Simplifier simplifier,
Simplifier... simplifiers)
Constructs a new chain of simplifiers.
|
Modifier and Type | Method and Description |
---|---|
static Simplifier |
Simplifiers.chain(List<Simplifier> simplifiers)
Constructs a new chain of simplifiers.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SimplifyingSimplifier
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
CachingSimplifier
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Simplifier |
Simplifying.getSimplifier()
Deprecated.
Gets the simplifier.
|
Simplifier |
CachingSimplifier.getSimplifier()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Simplifying.setSimplifier(Simplifier simplifier)
Deprecated.
Sets the simplifier.
|
void |
CachingSimplifier.setSimplifier(Simplifier simplifier)
Deprecated.
|
Constructor and Description |
---|
CachingSimplifier(int initialCapacity,
int maximumSize,
Simplifier simplifier)
Deprecated.
Creates a caching simplifier with
initialCapacity and
maximumSize . |
Copyright © 2014–2018. All rights reserved.