Giter Site home page Giter Site logo

Comments (7)

ProHiryu avatar ProHiryu commented on July 2, 2024

Bert自动分词的,分出来的token形如:["do", "ing"],这样子,为了避免token出错,出现多个字在同一个list当中,需要加入X这个容错机制,防止label和inputs长度不同,可以理解为中文当中是没用的。

from bert-chinese-ner.

xljhtq avatar xljhtq commented on July 2, 2024

@ProHiryu 照理bert tokenize出来的就是字呀,怎么会有多余的字在token这个list中呢?请解释一下,而且demo中的训练文本也没有打印出这个特例。。

from bert-chinese-ner.

Robets2020 avatar Robets2020 commented on July 2, 2024

主要是英文下用的比如doing会分成do ##ing, tag只算在前面那个词上, 后面那个词的tag就是X

from bert-chinese-ner.

icecity96 avatar icecity96 commented on July 2, 2024

@roberts-sh 所以X这个tag再中文环境下其实是没用的?

from bert-chinese-ner.

ProHiryu avatar ProHiryu commented on July 2, 2024

中文当中X并不存在实际意义 @icecity96 , 已经更新代码

from bert-chinese-ner.

alphanlp avatar alphanlp commented on July 2, 2024

中文一般都会混合英文,去掉会有潜在bug风险,建议加上

from bert-chinese-ner.

ProHiryu avatar ProHiryu commented on July 2, 2024

@shisi2015 多谢提醒

from bert-chinese-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.