|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttextractor.didyoumean.DidYouMean
public class DidYouMean
DidYouMean class for suggesting new search terms, a la 'Did You Mean' on Google.com.
| Constructor Summary | |
|---|---|
DidYouMean(DocumentIndexManager documentManager)
Initialize the DidYouMean engine. |
|
| Method Summary | |
|---|---|
String |
getDidYouMeanBasename()
|
void |
setDidYouMeanBasename(String basename)
|
List<ScoredResult> |
suggest(String term,
boolean orderWithVignaScore,
float cutoff)
Returns "Did you mean" suggestions based on a search term. |
List<ScoredResult> |
suggest(String term,
float cutoff)
Returns "Did you mean" suggestions based on a search term. |
List<ScoredResult> |
suggestPaiceHusk(String term,
float cutoff)
Suggest terms that belong to the same stemmed class as the query term. |
List<ScoredResult> |
suggestRelated(String term,
float cutoff)
Suggests terms related to this term. |
List<ScoredResult> |
suggestRelated2(String term,
float cutoff)
Deprecated. This method will be removed in the near future. Use suggestRelated for biomedical corpora. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DidYouMean(DocumentIndexManager documentManager)
throws IOException,
NoSuchMethodException,
IllegalAccessException,
ConfigurationException,
InvocationTargetException,
InstantiationException,
ClassNotFoundException,
URISyntaxException
documentManager - DocumenManager for the main index (the engine will
find the associated DidYouMean index)
IOException - If an error occured reading the did you mean index data.
NoSuchMethodException
IllegalAccessException
ConfigurationException
InvocationTargetException
InstantiationException
ClassNotFoundException
URISyntaxException| Method Detail |
|---|
public List<ScoredResult> suggest(String term,
float cutoff)
throws IOException,
ConfigurationException,
ParseException,
ClassNotFoundException,
QueryParserException,
QueryBuilderVisitorException
suggest in interface DidYouMeanIterm - - the search term
IOException
ConfigurationException
ParseException
ClassNotFoundException
QueryParserException
QueryBuilderVisitorException
public List<ScoredResult> suggest(String term,
boolean orderWithVignaScore,
float cutoff)
throws IOException,
ParseException,
QueryParserException,
QueryBuilderVisitorException
suggest in interface DidYouMeanIterm - the search termorderWithVignaScore - If true, terms are ordered first by vigna
score, and then by similarity to the search term
IOException
ParseException
QueryParserException
QueryBuilderVisitorException
@Deprecated
public List<ScoredResult> suggestRelated2(String term,
float cutoff)
throws ConfigurationException,
IOException,
ParseException,
ClassNotFoundException,
QueryParserException,
QueryBuilderVisitorException
term - Term suggestions are sought for.cutoff - Probability cutoff. Try 1E-3 or 1E-4.
ConfigurationException
IOException
ParseException
ClassNotFoundException
QueryParserException
QueryBuilderVisitorException
public List<ScoredResult> suggestRelated(String term,
float cutoff)
throws ConfigurationException,
IOException,
ParseException,
ClassNotFoundException,
QueryParserException,
QueryBuilderVisitorException
suggestRelated in interface DidYouMeanIterm - Term suggestions are sought for.cutoff - Probability cutoff. Try 1E-7 for the Medline corpus.
ConfigurationException
IOException
ParseException
ClassNotFoundException
QueryParserException
QueryBuilderVisitorException
public List<ScoredResult> suggestPaiceHusk(String term,
float cutoff)
throws ConfigurationException,
IOException,
ParseException,
ClassNotFoundException,
QueryParserException,
QueryBuilderVisitorException
suggestPaiceHusk in interface DidYouMeanIterm - cutoff -
ConfigurationException
IOException
ParseException
ClassNotFoundException
QueryParserException
QueryBuilderVisitorExceptionpublic String getDidYouMeanBasename()
public void setDidYouMeanBasename(String basename)
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||