Package | Description |
---|---|
org.apache.mahout.vectorizer.collocations.llr |
Modifier and Type | Method and Description |
---|---|
static Gram.Type |
Gram.decodeType(byte[] buf,
int offset) |
Gram.Type |
GramKey.getType() |
Gram.Type |
Gram.getType() |
static Gram.Type |
Gram.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gram.Type[] |
Gram.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static void |
Gram.encodeType(Gram.Type type,
byte[] buf,
int offset) |
Constructor and Description |
---|
Gram(String ngram,
Gram.Type type)
Create an gram with a frequency of 1
|
Gram(String ngram,
int frequency,
Gram.Type type)
Create a gram with the specified frequency.
|
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.