Open topic with navigation

# Categorization Example

This section contains an example of how you might set up categorization. Each step provides several examples of possible actions for that step.

To use Categorization

1. Create a few categories.

       action=CategoryCreate&Name=Animals&Category=10

       action=CategoryCreate&Name=Cats&Parent=10&Category=11

       action=CategoryCreate&Name=Dogs&Parent=10&Category=12

2. Train the new categories (from a selection of indexed documents, free text, and Boolean rules).

       action=CategorySetTraining&Category=10&DocRef=http://foo.com/animals&DocID=109,178

       action=CategorySetTraining&Category=11&Training=Cats and kittens can be a variety of colours, such as tabby or tortoiseshell

       action=CategorySetTraining&Category=12&Boolean=dog OR hound

3. Build the categories (this processes the training into terms and weights, enabling `CategoryQuery` and `CategorySuggest`).

       action=CategoryBuild&Category=10&Recurse=True

4. Manually adjust the terms and weights for one of the categories, and rebuild it.

       action=CategorySetTnW&Category=11&Terms=cat,kitten&Weights=500,400

       action=CategoryBuild&Category=11

5. Query for documents matching a particular category, with optional parameters.

       action=CategoryQuery&Category=11

       action=CategoryQuery&Category=12&DatabaseMatch=News&NumResults=10

6. Categorize already-indexed documents or free text.

       action=categorySuggestfromDocument&DocID=1465

       action=CategorySuggestFromText&QueryText=the cat in the hat

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm