Skip to content

Bradley C. Buchanan

Menu
  • Software Engineer
  • Manager
  • Game Designer
  • Vita
Menu

Self-Training Categorizer

2008-07-262014-03-17

I’m beginning a new project this month, to run through December. I’m going to learn how to train a Support Vector Machine (SVM) to categorize text, and then write a program that will automatically train the SVM using web searches generate training material. Once I’ve got a semblance of a working system, I’ll be building a ‘web game’ to evaluate the machine’s performance accuracy against human feedback. I hope that an automatically trained SVM will be able to catch references to current events in news and pop culture, and use those to assist in categorizing paragraphs of text.

I’ll be using SVMlight (or a related work from Thorsten Joachims of Cornell University) as the SVM backend. I just finished Probability, so the mathematics involved here are far beyond me; however, there is an SVM tutorial by Chris Burges out of Microsoft Research for those interested in the theory of SVMs.

My first challenge of this project is learning how to represent a text document as a vector. The most common representation (and the one used in the Inductive SVM example on Joachims’ page) is a Bag-of-Words or BOW. There’s a tutorial covering variations on the BOW model by José María Gómez Hidalgo of the Universidad Europea de Madrid. Basically, you build a dictionary for the categorization domain and then assign a value to each word based on whether it is in the document or not: Zero if the word does not appear, and either a one or a weighted value if it does. I think I will begin with a simple binary document representation while I work out the program flow, and tweak the representation later to see if it improves my results.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Work

  • ZSH git prompt workaround

    1 year ago
  • Back to School with Discord’s Whiteboard

    2 years ago
  • Discord Activities are on Mobile

    2 years ago
  • Good Enough Golfers update

    3 years ago
  • Leaving Code.org

    5 years ago

Play

  • Altered: Trial By Frost Prerelease

    4 months ago
  • Marginalia 2023-12-31

    1 year ago
  • IFComp 29 is open

    2 years ago
  • Discord Activities are on Mobile

    2 years ago
  • Esther’s: IFDB Awards

    2 years ago
RSS Feed

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Bradley C. Buchanan | Powered by Minimalist Blog WordPress Theme