Search in sources :

Example 16 with AnalyzeParagragh

use of main.Analyze.AnalyzeParagragh in project Info-Evaluation by TechnionYP5777.

the class AnalyzeParagraphTest method test9.

@Test
public void test9() {
    final Sentence sent = new Sentence("Soulja Boy was arrested for possession of a loaded gun in Los Angeles on Jan 22.\n");
    final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
    assertEquals("Soulja Boy", tt.getName());
    assertEquals("possession of gun", tt.getReason());
    assertEquals("01/22/2015", tt.getDate());
}
Also used : TableTuple(main.database.TableTuple) AnalyzeParagragh(main.Analyze.AnalyzeParagragh) Sentence(edu.stanford.nlp.simple.Sentence) Test(org.junit.Test)

Aggregations

Sentence (edu.stanford.nlp.simple.Sentence)16 AnalyzeParagragh (main.Analyze.AnalyzeParagragh)16 Test (org.junit.Test)16 TableTuple (main.database.TableTuple)12 ReasonPair (main.database.ReasonPair)3 InteractiveTableTuple (main.database.InteractiveTableTuple)2 LocalDate (java.time.LocalDate)1