Automatic extraction of titles from general documents using machine learning
discriminative training methods for hidden markov models : theory and experiments with perceptron algorithms .