Git Product home page Git Product logo

Comments (3)

Lz6669 avatar Lz6669 commented on June 12, 2024

作者您好,我在您这个代码的时候,在验证步骤时报错
错误是:ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1
我查了一下是维度不匹配 在main.py文件中的第78行
batch_output_all = np.append(batch_output_all, batch_output, axis=0) 这一行代码
请问怎么修改才能正常进行验证步骤呢?
万分感谢!

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 12, 2024

您好 我的数据集的标注格式是BIO,请问怎么修改您的代码才能识别BIO格式的数据集呢? 万分感谢!

新建一个process.py,转换数据为mid_data下面的格式。

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 12, 2024

作者您好,我在您这个代码的时候,在验证步骤时报错 错误是:ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 我查了一下是维度不匹配 在main.py文件中的第78行 batch_output_all = np.append(batch_output_all, batch_output, axis=0) 这一行代码 请问怎么修改才能正常进行验证步骤呢? 万分感谢!

下载最新的代码试试。

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.