Package com.linguamathematica.oa4j.TopicsAnalysis

Examples of com.linguamathematica.oa4j.TopicsAnalysis.Domain


  }

  private static TopicsAnalysis topicsAnalysisForURL()
  {
    final Set<Domain> domains = newSet(//@formatter:off
        new Domain(topic("Internet", 9), new Domain(topic("web page", 4),Domain.NULL)),
        new Domain(topic("Computers", 5), new Domain(topic("domain name", 4),Domain.NULL)));

    final Set<Noun> topTopics = newSet(

        topTopic(topic("example",4), of(Polarity.NEUTRAL, 0), of(OfferingGuidance.NOT_AT_ALL, 1),
            of(RequestingGuidance.NOT_AT_ALL, 1)),
View Full Code Here


  @Test
  public void returns_CorrectDomains() throws Exception
  {
    final Set<Domain> expected = newSet(//@formatter:off
        new Domain(topic("Family", 1), new Domain(topic("Immediate family", 1), new Domain(topic("son", 1), Domain.NULL))),
        new Domain(topic("Relationships", 12), new Domain(topic("widow", 12), Domain.NULL)),
        new Domain(topic("Politics", 6.0), new Domain(topic("Politicians", 6.0), new Domain(topic("douglas", 6.0), Domain.NULL))));
    //@formatter:on
    assertThat(domainsIn(textA), are(as(expected)));
  }
View Full Code Here

TOP

Related Classes of com.linguamathematica.oa4j.TopicsAnalysis.Domain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.