I'm a programmer without statistical background, and I'm currently looking at different classification methods for a large number of different documents that I want to classify into pre-defined categories. I've been reading about kNN, SVM and NN. However, I have some trouble getting started. What resources do you recommend? I do know single variable and multi variable calculus quite well, so my math should be strong enough. I also own Bishop's book on Neural Networks, but it has proven to be a bit dense as an introduction.
I recommend these books - they are highly rated on Amazon too:
"Text Mining" by Weiss
"Text Mining Application Programming", by Konchady
For software, I recommend RapidMiner (with the text plugin), free and open-source.
This is my "text mining process":
- collect the documents (usually a web crawl)
- [sample if too large]
- strip out markup
- tokenize: break into characters, words, n-grams, or sliding windows
- stemming (aka lemmatization)
- [include synonyms]
- see porter or snowflake algorithm pronouns and articles are usually bad predictors
- remove stopwords
- feature vectorization
- binary (appears or doesn’t)
- word count
- relative frequency: tf-idf
- information gain, chi square
- [have a minimum value for inclusion]
- weight words at top of document higher?
Then you can start the work of classifying them. kNN, SVM, or Naive Bayes as appropriate.
You can see my series of text mining videos here
A great introductory text covering the topics you mentioned is Introduction to Information Retrieval, which is available online in full text for free.
If you're coming from the programming side, one option is to use the Natural Language Toolkit (NLTK) for Python. There's an O'Reilly book, available freely, which might be a less dense and more practical introduction to building classifiers for documents among other things.
If you're interested in beefing up on the statistical side, Roger Levy's book in progress, Probabilistic Models in Study of Language, might not be bad to peruse. It's written for cogsci/compsci grad students starting out with statistical NLP techniques.
Firstly I can recommend you the book Foundations of statistical natural language processing by Manning and Schütze.
The methods I would use are word-frequency distributions and ngram language models. The first works very well when you want to classify on topic and your topics are specific and expert (having keywords). Ngram modelling is the best way when you want to classify writing styles etc.
Naive Bayes is usually the starting point for text classification, here's an article from Dr. Dobbs on how to implement one. It's also often the ending point for text classification because it's so efficient and parallelizes well, SpamAssassin and POPFile use it.