use of main.Analyze.AnalyzeParagragh in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test12.
@Test
public void test12() {
final Sentence sent = new Sentence("The Weeknd was arrested for punching a dancer in a night club on April 11 2015");
final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
assertEquals("The Weeknd", tt.getName());
assertEquals("04/11/2015", tt.getDate());
assertEquals("dancer punching", tt.getReason());
}
use of main.Analyze.AnalyzeParagragh in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test2.
@Test
public void test2() {
final Sentence sent = new Sentence("Justin Bieber was arrested for drunk driving in Georgia on February 22, 2015 .");
final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
assertEquals("Justin Bieber", tt.getName());
assertEquals("drunk driving in Georgia", tt.getReason());
assertEquals("02/22/2015", tt.getDate());
}
use of main.Analyze.AnalyzeParagragh in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test14.
@Test
public void test14() {
final Sentence sent = new Sentence("Mark Salling was arrested for felony possession of child pornography on Dec 29. His representative had no comment on the matter.");
final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
assertEquals("12/29/2015", tt.getDate());
System.out.println((tt.getRegularDate() + ""));
}
use of main.Analyze.AnalyzeParagragh in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test8.
@Test
public void test8() {
final Sentence sent = new Sentence("David Cassidy was arrested for driving under the influence on Jan 10 after he allegedly took a breathalyzer test and was found to be over twice the legal limit.\n");
final TableTuple tt = new AnalyzeParagragh(sent, "2015").Analyze();
assertEquals("David Cassidy", tt.getName());
assertEquals("driving under influence", tt.getReason());
assertEquals("01/10/2015", tt.getDate());
}
use of main.Analyze.AnalyzeParagragh in project Info-Evaluation by TechnionYP5777.
the class AnalyzeParagraphTest method test11.
@Test
public void test11() {
final Sentence sent = new Sentence("Juan Diego Fernandez was arrested for cheating by Axl Rose on Jan 25 1992 .");
final TableTuple tt = new AnalyzeParagragh(sent, "1992").Analyze();
assertEquals("Juan Diego Fernandez", tt.getName());
assertEquals("01/25/1992", tt.getDate());
assertEquals("cheating", tt.getReason());
}
Aggregations