Search in sources :

Example 16 with WikiParsing

use of infoeval.main.WikiData.WikiParsing in project Info-Evaluation by TechnionYP5777.

the class WikiParsingTest method test7.

@Test
public void test7() throws IOException {
    WikiParsing wp = new WikiParsing("https://en.wikipedia.org/wiki/Slash");
    wp.Parse("married");
    wp.CheckAmbiguities();
    assert wp.isConflictedName();
}
Also used : WikiParsing(infoeval.main.WikiData.WikiParsing) Test(org.junit.Test)

Example 17 with WikiParsing

use of infoeval.main.WikiData.WikiParsing in project Info-Evaluation by TechnionYP5777.

the class WikiParsingTest method test10.

@Test
public void test10() throws IOException {
    WikiParsing wp = new WikiParsing("https://en.wikipedia.org/wiki/Agnieszka");
    wp.Parse("refer");
    wp.CheckAmbiguities();
    assert wp.getNames().size() == 26;
}
Also used : WikiParsing(infoeval.main.WikiData.WikiParsing) Test(org.junit.Test)

Example 18 with WikiParsing

use of infoeval.main.WikiData.WikiParsing in project Info-Evaluation by TechnionYP5777.

the class WikiParsingTest method test3.

@Test
public void test3() throws IOException {
    WikiParsing wp = new WikiParsing("https://en.wikipedia.org/wiki/Michelle_Williams");
    wp.Parse("refer");
    assert wp.isConflictedName();
}
Also used : WikiParsing(infoeval.main.WikiData.WikiParsing) Test(org.junit.Test)

Aggregations

WikiParsing (infoeval.main.WikiData.WikiParsing)18 Test (org.junit.Test)12 IOException (java.io.IOException)4 AnalyzeParagraph (infoeval.main.Analysis.AnalyzeParagraph)3 CrossOrigin (org.springframework.web.bind.annotation.CrossOrigin)3 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)3 ArrayList (java.util.ArrayList)2 LemmaAnnotation (edu.stanford.nlp.ling.CoreAnnotations.LemmaAnnotation)1 SentencesAnnotation (edu.stanford.nlp.ling.CoreAnnotations.SentencesAnnotation)1 TokensAnnotation (edu.stanford.nlp.ling.CoreAnnotations.TokensAnnotation)1 CoreLabel (edu.stanford.nlp.ling.CoreLabel)1 Annotation (edu.stanford.nlp.pipeline.Annotation)1 CollapsedDependenciesAnnotation (edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations.CollapsedDependenciesAnnotation)1 CoreMap (edu.stanford.nlp.util.CoreMap)1 AwardsQuery (infoeval.main.Analysis.AwardsQuery)1 LinkedList (java.util.LinkedList)1 Element (org.jsoup.nodes.Element)1