Coder Social home page Coder Social logo

请问你的中文输入数据格式是什么样的?每行多个词,词之间空格间隔么? about cnn-text-classification-tf-chinese HOT 4 OPEN

indiejoseph avatar indiejoseph commented on May 18, 2024
请问你的中文输入数据格式是什么样的?每行多个词,词之间空格间隔么?

from cnn-text-classification-tf-chinese.

Comments (4)

indiejoseph avatar indiejoseph commented on May 18, 2024

可參考 https://github.com/indiejoseph/cnn-text-classification-tf-chinese/blob/master/data/chinese/neg.txt

from cnn-text-classification-tf-chinese.

danglei912 avatar danglei912 commented on May 18, 2024

谢谢,顺利看到示例数据,但是还有一点小疑问,希望能够得到您的解答。
我见您所给示例中句子里会有一些标点符号,如逗号,空格。但load_data_and_labels()函数中并未对标点符号做清洗,请问这些词在后续建立(词,索引)后,应该会稍微影响模型训练精度吧, 毕竟逗号,空格也作为一个词参与训练了?

from cnn-text-classification-tf-chinese.

indiejoseph avatar indiejoseph commented on May 18, 2024

因這個用細dataset, 我沒有做清洗,但你可以參考我另一個 project
https://github.com/indiejoseph/chinese-char-rnn/blob/master/utils.py

from cnn-text-classification-tf-chinese.

danglei912 avatar danglei912 commented on May 18, 2024

好的,非常感谢,我学习下。

from cnn-text-classification-tf-chinese.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.