Rule-Based Classification

Rule-based classification is the basic solution for creating an Oracle Text classification application.

The basic steps for rule-based classification are as follows. Specific steps are explored in greater detail in the example.

  1. Create a table for the documents to be classified, and then populate it.

  2. Create a rule table (also known as a category table). The rule table consists of categories that you name, such as “medicine” or “finance,” and the rules that sort documents into those categories.

    These rules are actually queries. For example, you define the “medicine” category as documents that include the words “hospital,” “doctor,” or “disease.” Therefore, you would set up a rule in the form of “hospital OR doctor OR disease.”

  3. Create a CTXRULE index on the rule table.

  4. Classify the documents.

See Also: “CTXRULE Parameters and Limitations” for information on which operators are allowed for queries