APISonar


edu.stanford.nlp.sempre.freebase.FreebaseInfo.DATE

> edu > stanford > nlp > sempre > freebase > FreebaseInfo > DATE
edu APIs stanford APIs nlp APIs sempre APIs freebase APIs FreebaseInfo APIs DATE APIs

Example 1
@Test public void units() {
    FreebaseInfo info = FreebaseInfo.getSingleton();
    assertEquals(FreebaseInfo.ENTITY, info.getUnit1("fb:people.person.place_of_birth"));
    assertEquals(FreebaseInfo.ENTITY, info.getUnit2("fb:people.person.place_of_birth"));

    assertEquals(FreebaseInfo.ENTITY, info.getUnit1("fb:people.person.date_of_birth"));
    assertEquals(FreebaseInfo.DATE, info.getUnit2("fb:people.person.date_of_birth"));

    assertEquals(FreebaseInfo.ENTITY, info.getUnit1("fb:people.person.height_meters"));
    assertEquals("fb:en.meter", info.getUnit2("fb:people.person.height_meters"));
  }