GithubHelp home page GithubHelp logo

Comments (4)

649453932 avatar 649453932 commented on June 10, 2024

没有完整代码我也不知道哪出错了,class.txt就按我的格式放上从0开始的所有label名称,另外label和文本之间是以制表符\t分隔的,你再检查检查吧

from chinese-text-classification-pytorch.

qiuyuan0929 avatar qiuyuan0929 commented on June 10, 2024

我是以制表符分隔的,class.txt和数据文本都检查过好几遍,都和您的格式一样,实在是不知道为什么会出这个问题……您介意拨冗看看完整的代码(其实我就只修改了train dev test的文件路径)或者我的数据集和class.txt(attached here)吗,如果可以的话我能加一下联系方式来讨论吗?主要是一个论文急用fasttext分类,添麻烦了实在不好意思T T
ct-test.txt
ct-train.txt
class.txt

from chinese-text-classification-pytorch.

649453932 avatar 649453932 commented on June 10, 2024

你的train和test里面除了分割text和label的制表符,是不是文本里面也有制表符,有的话替换成空格。

from chinese-text-classification-pytorch.

qiuyuan0929 avatar qiuyuan0929 commented on June 10, 2024

去掉制表符之后能运行了,非常感谢帮助!会在论文中把这个repository列为reference的。谢谢~

from chinese-text-classification-pytorch.

Related Issues (20)

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.