Package org.apache.uima.alchemy.digester.entity.ranked

Examples of org.apache.uima.alchemy.digester.entity.ranked.JsonTextRankedEntityExtractionDigester


public class RankedEntityJsonDigesterTest extends TestCase {

  public void testParseAlchemyJson() {
    try {
      JsonTextRankedEntityExtractionDigester digester = new JsonTextRankedEntityExtractionDigester();

      EntitiesResults results = (EntitiesResults) digester.parseAlchemyXML(this.getClass()
              .getResourceAsStream("/jsonTextRankedEntityResult.js"));
      assertTrue(results != null);
      assertTrue(results.getLanguage() != null);
      assertTrue(results.getStatus() != null);
      assertTrue(results.getUrl() != null);
View Full Code Here

TOP

Related Classes of org.apache.uima.alchemy.digester.entity.ranked.JsonTextRankedEntityExtractionDigester

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.