没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论




























目 录
摘要 ........................................................................................................................3
Abstract ..................................................................................................................4
第 1 章 绪论 ..........................................................................................................5
1.1 开发背景 .................................................................................................5
1.2 开发意义 .................................................................................................5
1.3 相关技术介绍 ..........................................................................................6
1.3.1 Python 语言...................................................................................6
1.3.2 django 框架 ...................................................................................7
1.3.3MySQL 数据库..............................................................................7
第 2 章 系统分析 ..................................................................................................8
2.1 自然语言的介绍 .....................................................................................8
2.2 可行性分析 .............................................................................................8
2.2.1 技术可行性 ...................................................................................8
2.2.2 操作的可行性 ...............................................................................9
2.2.3 经济可行性 ...................................................................................9
2.2.4 法律可行性 ...................................................................................9
2.3 设计的基本思想 ......................................................................................9
2.4 设计的原则 ............................................................................................10
第 3 章 系统设计 ................................................................................................11
3.1 系统结构设计 .......................................................................................11
3.2 功能模块设计 .......................................................................................11
3.3 数据库设计 ............................................................................................11
第 4 章 系统实现 ..............................................................................................13
4.1 基本任务 ................................................................................................13
4.2 系统主要功能得实现 ...........................................................................13
4.2.1 登录模块的实现 .........................................................................13
4.2.2 管理员登录首页的实现 ............................................................13
4.2.3 文本分类界面的实现 .................................................................14
4.2.4 文本管理界面的实现 .................................................................15
4.2.5 用户信息管理界面的实现 .........................................................15
第 5 章 系统测试 ..............................................................................................17

5.1 测试目的 ................................................................................................17
5.2 测试的方法 ...........................................................................................17
5.3 测试结果 ...............................................................................................17
结论 ......................................................................................................................18
致谢 ......................................................................................................................19
参考文献 ..............................................................................................................20

3
摘要
我国的网名人数正在不断的增加,随着网民人数的增长,现在网络上的讨论
的话题信息、对于日常新闻信息的分类内容等非常的多,人们越来越认为通过网
络来表达个人情感,表达个人心情是一项非常常见的事情。现在人们利用网络来
进行信息的传递交流非常的普遍,遇到任何问题也都会第一时间在网络上寻找答
案。而现在随着人工智能的不断发展壮大现在利用自然语言来对人们输入网络的
信息进行分类,让系统能够根据人们输入的信息内容进行相关情绪的片段,从而
让计算机系统能够将文本计入文本库,形成数据源,从而实现更好的判断信息内
容的过程。自然语言分类是现在一个非常热点的话题内容,通过自然语言的文本
分类,可以更好的帮助人工智能的推动发展,让数据库形成大量的数据内容,从
而让系统能够更好的通过语言分类来判断人们日常输入信息所要表达的内容,实
现更好的信息处理效果。
此次利用 Python 语言技术,通过 django 框架来搭建一款基于机器学习的文
本情感系统,通过文本情感分类来对让用户输入的文字语句进行情感判断,通过
用户输入的信息可以对用户所要表达的情感是积极的还是消极的,通过此的系统
开发能让程序在自然语言的技术支持下实现机器语言的学习。
关键词:自然语言;机器学习;文本情感系统;python 技术

4
Abstract
The number of net names in China is increasing. With the growth of the number
of Internet users, there are a lot of topic information and classified content of daily
news information on the Internet. People increasingly think that it is a very common
thing to express personal feelings and feelings through the Internet. Now it is very
common for people to use the network to transmit and exchange information. When
they encounter any problem, they will find the answer on the network at the first time.
Now, with the continuous development of artificial intelligence, natural language is
used to classify the information people input into the network, so that the system can
segment the relevant emotions according to the information content people input, so
that the computer system can count the text into the text database and form a data
source, so as to realize the process of better judging the information content. Natural
language classification is now a very hot topic. Through the text classification of
natural language, it can better help promote the development of artificial intelligence
and make the database form a large amount of data content, so that the system can
better judge the content to be expressed by people's daily input information through
language classification, so as to achieve better information processing effect.
This time, python language technology is used to build a text emotion system
based on machine learning through Django framework. The text emotion
classification is used to judge the emotion of the text sentences input by the user. The
information input by the user can determine whether the emotion to be expressed by
the user is positive or negative, Through this system development, the program can
realize the learning of machine language with the technical support of natural
language.
Key words: natural language; Machine learning; Text emotion system; Python
Technology

5
第 1 章 绪论
1.1 开发背景
当下的时代中,随着网络的不断普及,信息的传递速度快,人们通过网络来
进行信息的传递十分方便,而且随着移动互联网的不断发展,信息的传递呈现出
一轮新的发展高峰。在网络基础建设的不断发展下,人们现如今可以随时随地的
通过网络获取信息,通过信息的检索来查找到很多自己想要的信息内容。同时现
在随着人工智能的推进,计算机通过数字算法也有了自己的特殊情感,通过算法
对人们发布的信息内容进行判断解读,可以很好的理解人们可能需要表达的中心
思想是什么,从而更好的与人们产生互动。这一点通过自然语言能够很好的推动
人工智能的发展。现如今网络上的信息非常丰富,网络上的信息是否有价值,是
可以通过机器语言的学习来进行判断,通过机器语言的学习可以不断的获取新的
信息内容,对新的信息内容进行有效的内容总结,在总结之后,可以将判断的信
息存入信息库中,从而将信息库中的信息资源越积累越多,能够有着丰富的判断
数据积累,从而更好的实现对未来遇见更多的信息时能够更好的进行内容的判断,
提升判断的准确度。
1.2 开发意义
文本情感,是本次开发系统中,需要计算机能够识别的最为重要的内容。本
次利用了 python 技术中的 django 框架,以及 MySQL 数据库来搭建一款能够基
于机器学习的文本情感系统,通过该系统的搭建可以更好地让系统实现对输入的
文字内容进行有效的情感判断,判断出当前输入的信息内容想要表达的心情是怎
样的,并且能够将判断的记录存储在系统的数据库中,为该系统提供了更多的判
断经验,从而为后期的长效使用提供了有效的判断依据。本次的系统开发基于了
自然语言的算法,通过自然语言能够很好的实现情感内容的判断,对于关键词的
查找也更加的细致准确。通过本次的开发也是向人工智能项目开发发展的一次初
级挑战,希望能够通过此次的系统开发搭建来实现初步的由机器来判断情感的过
程。
剩余20页未读,继续阅读
资源评论


入伍击寇
- 粉丝: 120
- 资源: 3062
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
