FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

textocat/textocat-java-sdk: Official Java SDK for Textocat API · GitHub

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official Java SDK for Textocat API

Integrate Textocat API easily into your Java application

The project features native integration with Textocat API in Java. All calls to API are asynchronous. The SDK is built on top of Mashape's Unirest, Google's Guava and Gson.

Latest Version

1.0 (with support of Textocat API 0.3)

Features

Authorization token

To take advantage of the SDK, you must have an authorization key (authToken). Get one for free!

Prerequisites

  • Java 1.7+

Installation

Add the following entries to Maven pom.xml:

<repository>
        <id>Textocat Artifactory</id>
        <name>Textocat Artifactory-releases</name>
        <url>http://corp.textocat.com/artifactory/oss-libs-releases-local</url>
</repository>
<dependency>
  <groupId>com.textocat.api.sdk</groupId>
  <artifactId>textocat-java-sdk</artifactId>
  <version>1.0</version>
</dependency>

How to use for entity recognition

final EntityRecognition entityRecognition = TextocatFactory.getEntityRecognitionInstance("<YOUR_AUTH_TOKEN>");
final FutureCallback<AnnotatedBatch> outputCallback = // a callback for dealing with annotated documents ...
        FutureCallback<BatchMetadata> inputCallback = new FutureCallback<BatchMetadata>() {
            public void onSuccess(BatchMetadata batchMetadata) {
               entityRecognition.retrieve(outputCallback, batchMetadata);
            }
            public void onFailure(Throwable throwable) {}
        };
entityRecognition.submit(new Batch(documents), inputCallback);

Mailing list

Have a question or a suggestion? Please join our user forum.

Development and Contribution

Developed in Textocat. If you find any bug or would like to suggest an improvement, feel free to submit pull requests into develop branch.

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

About

Official Java SDK for Textocat API

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL