Coder Social home page Coder Social logo

Comments (9)

taishan1994 avatar taishan1994 commented on June 11, 2024

作者您好!我是小白,运行main.py出错,维度有问题!想询问一下解决方法。 image

使用的什么数据集,怎么运行的。

from pytorch_bert_bilstm_crf_ner.

EpichubS avatar EpichubS commented on June 11, 2024

使用的cner中final_data,直接在pycharm中运行的。参数调用的config.py的默认参数(已按自己路径做了更改)。

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 11, 2024

使用的cner中final_data,直接在pycharm中运行的。参数调用的config.py的默认参数(已按自己路径做了更改)。

最好在命令行使用指令运行。

from pytorch_bert_bilstm_crf_ner.

EpichubS avatar EpichubS commented on June 11, 2024

image

from pytorch_bert_bilstm_crf_ner.

EpichubS avatar EpichubS commented on June 11, 2024

线性层输出为4800x33,下一行中batch_size=32,seq_len=256

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 11, 2024

线性层输出为4800x33,下一行中batch_size=32,seq_len=256

最大长度应该是150.

from pytorch_bert_bilstm_crf_ner.

EpichubS avatar EpichubS commented on June 11, 2024

好的,感谢作者!

from pytorch_bert_bilstm_crf_ner.

EpichubS avatar EpichubS commented on June 11, 2024

您好!我还想问一下,这个seq_len由什么确定的呢? 感谢!

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 11, 2024

您好!我还想问一下,这个seq_len由什么确定的呢? 感谢!

自己根据数据的平均长度设置。

from pytorch_bert_bilstm_crf_ner.

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.