use of main.database.InteractiveTableTuple in project Info-Evaluation by TechnionYP5777.
the class InteractiveTableTupleTest method test1.
@Test
public void test1() {
InteractiveTableTuple t = new InteractiveTableTuple("Justin Bieber", "12/02/2016", null);
assertEquals(t.getDate(), "12/02/2016");
assertEquals(t.getName(), "Justin Bieber");
assertEquals((t.getRegularDate() + ""), "Fri Dec 02 00:00:00 IST 2016");
assert t.getKeyWords().isEmpty();
}
use of main.database.InteractiveTableTuple in project Info-Evaluation by TechnionYP5777.
the class InteractiveAnalyzeParagraphTest method test3.
@Test
public void test3() {
final Sentence sent = new Sentence("Vin Diesel was arrested for furious driving on August 14, 2002 in California");
final InteractiveTableTuple itt = new AnalyzeParagragh(sent, "2002").InteractiveAnalyze();
assertEquals("Vin Diesel", itt.getName());
assertEquals("08/14/2002", itt.getDate());
for (ReasonPair ¢ : itt.getReasons()) System.out.println(¢.getReason() + " with probability: " + ¢.getProbability());
}
use of main.database.InteractiveTableTuple in project Info-Evaluation by TechnionYP5777.
the class InteractiveAnalyzeParagraphTest method test1.
@Test
public void test1() {
final Sentence sent = new Sentence("Justin Bieber was arrested for drunk driving in Georgia on February 22, 2015 .");
final InteractiveTableTuple itt = new AnalyzeParagragh(sent, "2015").InteractiveAnalyze();
assertEquals("Justin Bieber", itt.getName());
assertEquals("02/22/2015", itt.getDate());
for (ReasonPair ¢ : itt.getReasons()) System.out.println(¢.getReason() + " with probability: " + ¢.getProbability());
}
Aggregations