public interface VectorGenerator
Modifier and Type | Method and Description |
---|---|
List<Explanation> |
getExplanations(int pageID1,
int pageID2,
gnu.trove.map.TIntFloatMap vector1,
gnu.trove.map.TIntFloatMap vector2,
SRResult result)
Adds the explanation for a particular SRResult if it is supported.
|
List<Explanation> |
getExplanations(String phrase1,
String phrase2,
gnu.trove.map.TIntFloatMap vector1,
gnu.trove.map.TIntFloatMap vector2,
SRResult result)
Adds the explanation for a particular SRResult if it is supported.
|
gnu.trove.map.TIntFloatMap |
getVector(int pageId)
Returns the feature vector associated with Wikipedia id.
|
gnu.trove.map.TIntFloatMap |
getVector(String phrase)
Returns the feature vector associated with the phrase
|
gnu.trove.map.TIntFloatMap getVector(int pageId) throws DaoException
pageId
- DaoException
gnu.trove.map.TIntFloatMap getVector(String phrase)
phrase
- UnsupportedOperationException
- if it cannot generate a feature vector for a phrase.List<Explanation> getExplanations(String phrase1, String phrase2, gnu.trove.map.TIntFloatMap vector1, gnu.trove.map.TIntFloatMap vector2, SRResult result) throws DaoException
phrase1
- First phrasephrase2
- Second phrasevector1
- Vector representing first itemvector2
- Vector representing second itemresult
- Original sr object, with explanations (hopefully) added.DaoException
List<Explanation> getExplanations(int pageID1, int pageID2, gnu.trove.map.TIntFloatMap vector1, gnu.trove.map.TIntFloatMap vector2, SRResult result) throws DaoException
pageID1
- First pagepageID2
- Second pagevector1
- Vector representing first itemvector2
- Vector representing second itemresult
- Original sr object, with explanations (hopefully) added.DaoException
Copyright © 2014. All rights reserved.