Package org.dbpedia.spotlight.lucene

Examples of org.dbpedia.spotlight.lucene.LuceneFeatureVector


        // Iterate through the results:
        for (ScoreDoc hit : getHits(query)) {
            DBpediaResource resource = getDBpediaResource(hit.doc);
            TermFreqVector vector = getVector(hit.doc);
            surrogates.add(new LuceneFeatureVector(resource, vector));
        }

        //LOG.debug(surrogates.size()+" hits found.");
        return surrogates;
    }
View Full Code Here


        for (ScoreDoc hit : getHits(mLucene.getQuery(sf))) {
            int docNo = hit.doc;

            DBpediaResource resource = getDBpediaResource(docNo);
            TermFreqVector vector = getVector(docNo);
            surrogates.add(new LuceneFeatureVector(resource, vector));
        }

        //LOG.debug(surrogates.size()+" surrogates found.");

        // return set of surrogates
View Full Code Here

        // Iterate through the results:
        for (ScoreDoc hit : getHits(mLucene.getQuery(resource))) {
            int docNo = hit.doc;
            TermFreqVector vector = getVector(docNo);
            vectors.add(new LuceneFeatureVector(resource, vector));
        }
        LOG.trace(vectors.size()+" vectors found.");

        // return set of vectors
        return vectors;
View Full Code Here

TOP

Related Classes of org.dbpedia.spotlight.lucene.LuceneFeatureVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.