arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.12093cs.CL
收藏

一种新闻预测方法--基于BERT的精确多LSTM网络

Approach to Predicting News -- A Precise Multi-LSTM Network With BERT

National Sun Yat-sen University(国立中山大学);The University of London(伦敦大学);Academia Sinica(中央研究院)

Chia-Lin Chen, Pei-Yu Huang, Yi-Ting Huang, Chun Lin

摘要:

民主的多样性(V-Dem)是一种概念化和衡量民主和政治的新方法。它拥有200个国家的信息,是最大的政治学数据库之一。根据V-Dem 2019年度民主报告,台湾是外国政府传播虚假信息最多的两个国家之一。这也说明,“假新闻”在台湾社会造成了很大的混乱,对全球稳定造成了严重影响。虽然有几个应用程序可以帮助区分虚假信息,但我们发现,对新闻进行分类的预处理仍然是由人工完成的。但是,人力劳动可能会产生错误,不能长期工作。近几十年来,对自动化机器的需求不断增长,这表明虽然机器可以做得和人类一样好,甚至更好,但使用机器可以减轻人类的负担,降低成本。因此,在这项工作中,我们建立了一个预测模型来分类的新闻类别。我们使用的语料库包含28358条新闻和200条从在线报纸Liberty Times Net(LTN)网站上抓取的新闻,包括8个类别:技术,娱乐,时尚,政治,体育,国际,金融和健康。首先,我们使用双向编码器表示从Transformers(BERT)的词嵌入转换成(1,768)向量的每个汉字。然后,我们使用一个长短期记忆(LSTM)层将词嵌入转换为句子嵌入,并添加另一个LSTM层将它们转换为文档嵌入。每个文档嵌入都是最终预测模型的输入,该模型包含两个密集层和一个激活层。每个文档嵌入被转换为一个8个实数的向量,然后最高的一个将对应于8个新闻类别,准确率高达99%。

英文摘要:

Varieties of Democracy (V-Dem) is a new approach to conceptualizing and measuring democracy and politics. It has information for 200 countries and is one of the biggest databases for political science. According to the V-Dem annual democracy report 2019, Taiwan is one of the two countries that got disseminated false information from foreign governments the most. It also shows that the "made-up news" has caused a great deal of confusion in Taiwanese society and has serious impacts on global stability. Although there are several applications helping distinguish the false information, we found out that the pre-processing of categorizing the news is still done by human labor. However, human labor may cause mistakes and cannot work for a long time. The growing demands for automatic machines in the near decades show that while the machine can do as good as humans or even better, using machines can reduce humans' burden and cut down costs. Therefore, in this work, we build a predictive model to classify the category of news. The corpora we used contains 28358 news and 200 news scraped from the online newspaper Liberty Times Net (LTN) website and includes 8 categories: Technology, Entertainment, Fashion, Politics, Sports, International, Finance, and Health. At first, we use Bidirectional Encoder Representations from Transformers (BERT) for word embeddings which transform each Chinese character into a (1,768) vector. Then, we use a Long Short-Term Memory (LSTM) layer to transform word embeddings into sentence embeddings and add another LSTM layer to transform them into document embeddings. Each document embedding is an input for the final predicting model, which contains two Dense layers and one Activation layer. And each document embedding is transformed into 1 vector with 8 real numbers, then the highest one will correspond to the 8 news categories with up to 99% accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑