1. A system for training a text classifier, the system comprising: a text data preprocessor that preprocesses raw training text to produce an input matrix; a weighting module that generates a weighted matrix by re-weighting the input matrix based on how many training examples are positive and how many training examples are negative; and a model-vector generator that iteratively calculates a model vector based on the weighted matrix.