public class VectorArticleIndex extends LuceneArticleIndex
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
protected static int |
NUM_PARVEC_CANDIDATES |
protected static EntityEncoder.Strategy |
strategy |
analyzer, FIELD_DESCRIPTION, FIELD_NAMES, FIELD_REFIDS, FIELD_REFIDS_FREEBASE, FIELD_REFIDS_ICD10, FIELD_REFIDS_UMLS, FIELD_REFIDS_WIKIDATA, FIELD_REFIDS_WIKIPEDIA, FIELD_REFURLS_WIKIPEDIA, FIELD_TERMS, FIELD_TEXT, FIELD_TITLE, FIELD_TYPE, FIELD_VECTOR, NUM_BM25_CANDIDATES, PARAM_FUZZY, PARAM_PROXIMITY, preprocessor, reader, searcher, sim| Constructor and Description |
|---|
VectorArticleIndex(Resource parVec) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.document.Document |
createLuceneDocument(WikiDataArticle article)
Adds a Vector field to Lucene index
|
List<ArticleRef> |
querySimilarArticles(String mention,
String context,
int hits) |
addNameField, addStringField, addTextField, addVectorField, buildAnalyzer, createIndex, createIndexDirectory, createIndexRAM, createWikidataArticle, createWikidataArticleRef, decodeWikiUrl, getAllArticleIDs, getAllArticleNames, getAllArticleTerms, getAllArticleTitles, getAllArticleURLs, getAllFields, openIndex, queryID, queryIndexID, queryIndexNames, queryIndexPrefix, queryNames, queryPrefixNames, queryWikidataID, queryWikipediaPage, queryWikipediaURL, splitStringprotected static final org.slf4j.Logger log
protected static final int NUM_PARVEC_CANDIDATES
protected static final EntityEncoder.Strategy strategy
public VectorArticleIndex(Resource parVec) throws IOException
IOExceptionprotected org.apache.lucene.document.Document createLuceneDocument(WikiDataArticle article)
createLuceneDocument in class LuceneArticleIndexpublic List<ArticleRef> querySimilarArticles(String mention, String context, int hits)
Copyright © 2019. All rights reserved.