8 Star 56 Fork 1

secondriver / tangshi-analyze

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Unlicense

唐诗分析程序

1. 简介

唐诗分析程序主要是通过抓取互联网上的唐诗,然后进行数据的清洗,存储,数据分析,输出报告。

2. 背景

随着Java的发展,提供了流式处理(Stream)数据的能力,以及数据挖掘也是近年来比较热门的技术职业发展方向。通过初步学习,研究简单的数据采集,清洗,存储和分析,了解整个数据挖掘的基本流程。

3. 意义

  • 了解数据挖掘的基本流程
  • 熟悉数据分析方法
  • 锻炼应用技术解决问题的能力

3. 目标数据

数据采集主要来自:古诗文网

4. 功能

  • 数据采集,清洗,存储
  • 数据分析,可视化展示

5. 技术

  • Stream流式处理
  • 文本分词和解决(ansj
  • 多线程
  • 网络爬虫(htmlunit
  • 数据库和JDBC编程
  • 数据可视化(HTML/CSS/JavaScript, echarts,jQuery
  • SpringBoot快速构建web应用以及管理对象与配置信息

6. 实现

7. 分析结果

  • 唐诗创作数量排行

  • 唐诗用词云图

8. 部署运行

  • 打包 mvn package -Dmaven.test.skip=true 输出可执行程序target/tangshi-analyze-1.0.0.jar
  • 配置 application.properties
  • 运行-不启动爬虫 java -jar tangshi-analyze-1.0.0.jar
  • 运行-启动爬虫 java -jar tangshi-analyze-1.0.0.jar crawler-run

9. 参与开发

  • 下载源码
    • git clone https://gitee.com/secondriver/tangshi-analyze.git
    • cd tangshi-analyze
  • 导入数据库
    • mysql -u 数据库用户名 -p
    • source tangshi\tangshi.sql
  • 配置修改
    • src\main\resources\application.properties
    • spring.datasource.username=数据库用户名
    • spring.datasource.password=数据库密码
  • 开发功能
    • src\main\java\com.bittech.tangshianalyze.TangshiAnalyzeApplication程序入口
    • src\main\java\com.bittech.tangshianalyze.crawler爬虫部分
    • src\main\java\com.bittech.tangshianalyze.analyze数据分析
    • src\main\java\com.bittech.tangshianalyze.webWeb接口
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org>

简介

唐诗分析程序主要是通过抓取互联网上的唐诗,然后进行数据的清洗,存储,数据分析,输出报告 展开 收起
Java 等 3 种语言
Unlicense
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/secondriver/tangshi-analyze.git
git@gitee.com:secondriver/tangshi-analyze.git
secondriver
tangshi-analyze
tangshi-analyze
master

搜索帮助

14c37bed 8189591 565d56ea 8189591