Package dkpro.similarity.algorithms.wikipedia.measures

Examples of dkpro.similarity.algorithms.wikipedia.measures.LeskComparator


        String term2 = "Truck";

        Set<Entity> entitiesAuto  = wikiResource.getEntity(term1);
        Set<Entity> entitiesTruck = wikiResource.getEntity(term2);

        LeskComparator leskComparator = new LeskFirstComparator(wiki);
        leskComparator.setUseCache(false);

        assertEquals(glossOverlapComparator.getSimilarity(entitiesAuto, entitiesTruck), leskComparator.getSimilarity(term1, term2), epsilon);

        wikiResource.setIsCaseSensitive(false);
    }
View Full Code Here

TOP

Related Classes of dkpro.similarity.algorithms.wikipedia.measures.LeskComparator

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.