Examples of similarityScore()


Examples of org.dbpedia.spotlight.model.DBpediaResourceOccurrence.similarityScore()

        Collections.sort(bestK, new SimScoreComparator());

        for(int i=1; i < bestK.size(); i++) {
            DBpediaResourceOccurrence top = bestK.get(i-1);
            DBpediaResourceOccurrence bottom = bestK.get(i);
            top.setPercentageOfSecondRank(bottom.similarityScore()/top.similarityScore()); //TODO similarityScore or contextualScore??
        }

        return bestK;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.