IDOL Server Operations > Binary Categories > Create and Administer Binary Categories > Train a Binary Category

Train a Binary Category
You can train a binary category using the BinaryCatTrain command. Unlike normal categories, which have only positive training, binary categories can have both positive and negative training.
If the binary category has existing training, BinaryCatTrain adds the new training to it. If you want to replace a binary category's training, you must first use the BinaryCatDeleteTraining action to delete the existing training. For example:,456&NegativeDocID=789,890
This action uses port 9000 to instruct IDOL server, which is located on a machine with the IP address, to train the binary category named spam_binarycat. It uses the documents with IDs 123 and 456 for positive training and the documents with IDs 789 and 890 for negative training.