public enum Similarity extends java.lang.Enum<Similarity>
null
if they are not required.
Moreover, they have a friendly name that can be used to identify them.Enum Constant and Description |
---|
CHAR_N_GRAMS |
LENGTH_FACTOR |
MONOLINGUAL_BOW |
PSEUDOCOGNATES |
WIKILINKS |
Modifier and Type | Method and Description |
---|---|
Model |
getModel() |
java.lang.String |
getName() |
RepresentationType |
getRepresentation() |
static Similarity |
getSimilarityByName(java.lang.String name) |
static Similarity |
getSimilarityByRepr(RepresentationType repr)
TODO ask Josu about this
|
static Similarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Similarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Similarity CHAR_N_GRAMS
public static final Similarity LENGTH_FACTOR
public static final Similarity MONOLINGUAL_BOW
public static final Similarity PSEUDOCOGNATES
public static final Similarity WIKILINKS
public static Similarity[] values()
for (Similarity c : Similarity.values()) System.out.println(c);
public static Similarity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic RepresentationType getRepresentation()
public Model getModel()
public java.lang.String getName()
public static Similarity getSimilarityByName(java.lang.String name)
name
- Name which identifies the similarity that we want
(cng, cog, len, mono).public static Similarity getSimilarityByRepr(RepresentationType repr)
name
- Name which identifies the similarity that we want
(cng, cog, len, mono).