Comments (4)
可參考 https://github.com/indiejoseph/cnn-text-classification-tf-chinese/blob/master/data/chinese/neg.txt
from cnn-text-classification-tf-chinese.
谢谢,顺利看到示例数据,但是还有一点小疑问,希望能够得到您的解答。
我见您所给示例中句子里会有一些标点符号,如逗号,空格。但load_data_and_labels()函数中并未对标点符号做清洗,请问这些词在后续建立(词,索引)后,应该会稍微影响模型训练精度吧, 毕竟逗号,空格也作为一个词参与训练了?
from cnn-text-classification-tf-chinese.
因這個用細dataset, 我沒有做清洗,但你可以參考我另一個 project
https://github.com/indiejoseph/chinese-char-rnn/blob/master/utils.py
from cnn-text-classification-tf-chinese.
好的,非常感谢,我学习下。
from cnn-text-classification-tf-chinese.
Related Issues (15)
- 请问如果有多个句子怎么办呢? HOT 1
- 请问这个代码在测试集上的准确率和召回率分别是多少呢 HOT 8
- There is no _linear function in TensorFlow 1.0.1 HOT 1
- 你好,可以提供对应的eval.py么? HOT 1
- 你好,请问尝试过将数据分词后作为输入和用pretrained的词向量的做法吗? HOT 1
- 请问想做多分类该怎么修改呢? HOT 1
- 可以提供兼容Python3.5的版本吗 HOT 1
- The model seems not converging? HOT 5
- 你好,请教个问题。能解释下你的代码意思和主要做什么用的,分词? HOT 8
- 直接运行时候, 报错 HOT 3
- where is the data? HOT 1
- out of memory on GPU gtx970(4M Mem)
- InternalError: Dst tensor is not initialized. HOT 1
- 你好 这个中文情感分析 数据 是从哪里得到的? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnn-text-classification-tf-chinese.