public class Term extends Model
| Constructor and Description |
|---|
Term()
Creates a new instance of
Term |
Term(String term)
Creates a new instance of
Term. |
Term(String term,
int[] positions)
Creates a new instance of
Term. |
| Modifier and Type | Method and Description |
|---|---|
double |
getDf()
Gets the document frequency.
|
Fingerprint |
getFingerprint()
Gets the fingerprint.
|
String[] |
getPosTypes()
Gets the posTypes.
|
double |
getScore()
Gets the score.
|
String |
getTerm()
Gets the term.
|
protected void |
setDf(double df)
Sets the document frequency.
|
void |
setFingerprint(Fingerprint fingerprint)
Sets the fingerprint.
|
protected void |
setPosTypes(String[] posTypes)
Sets the posTypes.
|
protected void |
setScore(double score)
Sets the score.
|
void |
setTerm(String term)
Sets the term.
|
toJson, toJson, toJsonBulkpublic Term()
Termpublic Term(String term)
Term.term - a String containing the termpublic String getTerm()
public double getDf()
public double getScore()
public String[] getPosTypes()
public Fingerprint getFingerprint()
protected void setDf(double df)
df - the df to setprotected void setScore(double score)
score - the score to setprotected void setPosTypes(String[] posTypes)
posTypes - the posTypes to setpublic void setTerm(String term)
term - the term to setpublic void setFingerprint(Fingerprint fingerprint)
fingerprint - the fingerprint to setCopyright © 2015. All rights reserved.