public class IntAugmentedPhrase extends Object implements org.apache.hadoop.io.WritableComparable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
byte |
_language |
int[] |
_values |
int[] |
_words |
| Constructor and Description |
|---|
IntAugmentedPhrase() |
IntAugmentedPhrase(int[] p,
int lang,
int[] v) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
compareTo(Object o) |
boolean |
equals(Object o) |
static IntAugmentedPhrase |
fromString(int lang,
String sentence,
Vocab voc) |
byte |
getLanguage() |
IntAugmentedPhrase |
getSubPhrase(int start,
int end) |
int[] |
getValues() |
int[] |
getWords() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setLanguage(int l) |
void |
setValues(int[] values) |
void |
setWords(int[] words) |
int |
size() |
String |
toString() |
String |
toString(Vocab voc) |
void |
write(DataOutput out) |
public byte _language
public int[] _words
public int[] _values
public IntAugmentedPhrase()
public IntAugmentedPhrase(int[] p,
int lang,
int[] v)
public int size()
public int compareTo(Object o)
compareTo in interface Comparablepublic int[] getWords()
public int[] getValues()
public byte getLanguage()
public void setLanguage(int l)
public IntAugmentedPhrase getSubPhrase(int start, int end)
public static IntAugmentedPhrase fromString(int lang, String sentence, Vocab voc)
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void setWords(int[] words)
public void setValues(int[] values)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2015. All rights reserved.