public interface TaggableItem
Modifier and Type | Method and Description |
---|---|
Item |
getConnectedItem() |
double |
getConnectivity() |
double |
getSignificance() |
int |
getUniqueID() |
boolean |
hasExplicitSignificance() |
boolean |
hasUniqueID() |
void |
setConnectivity(Item item,
double connectivity)
Set the connectivity to another term in the same query tree.
|
void |
setExplicitSignificance(boolean significance) |
void |
setSignificance(double significance)
Used for setting explicit term significance (in the tf/idf sense) to a single term or phrase,
relative to the rest of the query.
|
void |
setUniqueID(int id) |
int getUniqueID()
void setUniqueID(int id)
boolean hasUniqueID()
void setConnectivity(Item item, double connectivity)
By default consecutive query terms are 'somewhat' connected, meaning ranking features will be better in documents where the terms are found close to each other. This effect can be increased or decreased by manipulating the connectivity value. Typical use is to increase the connectivity between terms in the query that we believe are semantically connected. E.g in the query 'new york hotel', it is a good idea to increase the connectivity between "new" and "york" to ensure that a document containing "List of hotels in New York" is ranked above one containing "List of new hotels in York".
item
- the item this should be connected to - in practice the next consecutive item in the queryconnectivity
- a value between 0 (none) and 1 (maximal), defining the connectivity between this and the
argument item. The default connectivity is 0.1.Item getConnectedItem()
double getConnectivity()
void setSignificance(double significance)
boolean hasExplicitSignificance()
void setExplicitSignificance(boolean significance)
double getSignificance()
Copyright © 2018. All rights reserved.