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