- 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.
- Learning SQL Server Reporting Services 2012
- Learning Stencyl 3.x Game Development Beginner's Guide
- Svelte 3 Up and Running
- 嵌入式系統中的模擬電路設計
- Hands-On Machine Learning with C#
- 筆記本電腦應用技巧
- SiFive 經典RISC-V FE310微控制器原理與實踐
- 單片機技術及應用
- 單片機原理及應用:基于C51+Proteus仿真
- Intel FPGA權威設計指南:基于Quartus Prime Pro 19集成開發環境
- FreeSWITCH Cookbook
- 嵌入式系統設計大學教程(第2版)
- 筆記本電腦的結構、原理與維修
- 現代多媒體技術及應用
- 微服務架構實戰:基于Spring Boot、Spring Cloud、Docker