- Mastering Machine Learning on AWS
- Dr. Saket S.R. Mengle Maximo Gurmendez
- 194字
- 2021-06-24 14:23:15
Classifying text with language models
Text classification is an application of classification algorithms. However, the text is a combination of words in a specific order. Hence, you can observe that a text document with a class variable is not similar to the dataset that we presented in the table in the Classification algorithms section.
A text dataset can be represented as shown in the following table:
Table 2: Example of a Twitter dataset

For this chapter, we have built a dataset based on tweets from two different accounts. We also have provided code in the following sections so that you can create your own datasets to try this example. Our purpose is to build a smart application that is capable of predicting the source of a tweet just by reading the tweet text. We will collect several tweets by the United States Republican Party (@GOP) and the Democratic Party (@TheDemocrats) to build a model that can predict which party wrote a given tweet. In order to do this, we will randomly select some tweets from each party and submit them through the model to check whether the prediction actually matched reality.
- 精選單片機設計與制作30例(第2版)
- Unity 5.x Game Development Blueprints
- 計算機維修與維護技術速成
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- BeagleBone Robotic Projects
- Source SDK Game Development Essentials
- WebGL Hotshot
- 基于S5PV210處理器的嵌入式開發完全攻略
- 多媒體應用技術(第2版)
- 計算機組裝與維護
- Practical Artificial Intelligence and Blockchain
- 計算機組裝與維護教程
- Mastering Unity 2D Game Development
- 新型復印機·傳真機維修數據速查寶典
- Mastering JavaServer Faces 2.2