Core libraries for natural language processing, with perceptron classifiers