GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-sdk/natural-language-classifier at master · jaymicrocode/java-sdk

Expand file tree

/

natural-language-classifier

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

natural-language-classifier

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 

README.md

Outline

Natural Language Classifier

Installation

Maven
<dependency>
  <groupId>com.ibm.watson</groupId>
  <artifactId>natural-language-classifier</artifactId>
  <version>8.6.0</version>
</dependency>
Gradle
'com.ibm.watson:natural-language-classifier:8.6.0'

Usage

Use Natural Language Classifier service to create a classifier instance by providing a set of representative strings and a set of one or more correct classes for each as training. Then use the trained classifier to classify your new question for best matching answers or to retrieve next actions for your application.

Authenticator authenticator = new IamAuthenticator("<iam_api_key>");
NaturalLanguageClassifier service = new NaturalLanguageClassifier(authenticator);

ClassifyOptions classifyOptions = new ClassifyOptions.Builder()
  .classifierId("<classifier-id>")
  .text("Is it sunny?")
  .build();

Classification classification = service.classify(classifyOptions).execute().getResult();
System.out.println(classification);

Note: You will need to create and train a classifier in order to be able to classify phrases.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.