Using the model to score new documents
In this book, I have kept the perspective for model implementation. Our work does not stop at the modeling step but also considers the implementation. In the previous section, we completed a model. I will now show you how to use it to score new documents. I keyed in three new documents in the new_texts
list. The first one is a technology news article stating that the new Windows operating system will be released, the second one is also a technology news article, and the third one is an economic news article:
new_texts = ['The new Windows operating system will be released', 'The system uses the most difficult technologies and techniques', 'The U.S. consumer prices dropped for the first time in ten months']
Important note
Any text preparation procedures that are applied to the training data will be applied to the new documents as well. We will perform text preprocessing on the new documents.
The new texts...