Giter Club home page Giter Club logo

Comments (2)

zhiyuanding avatar zhiyuanding commented on June 11, 2024

句子:他的检验报告等。
标注:“报告”
位置:4, 6
使用model.py中的evaluate_line方法会出现以下情况:

  1. word:报告 start:3 end:6
  2. word:验报告 start:4 end:6
  3. word:检验报告 start:4 end:6

下面对上述问题进行分析
word、start、end的产生规则如下:
①. 遇到S直接返回当前字符与位置
②. 遇到B、I、E对word进行追加
③. 遇到B、O对start进行赋值

对于问题1,实际结果如下
他 O
的 O
检 O
验 O
报 I
告 E
等 O
。 O
产生原因为:到“验 O”时,start=3,word='' 到“告 E”时,end=6,word='报告'

对于问题2,实际结果如下:
他 O
的 O
检 O
验 I
报 B
告 E
等 O
。 O
产生原因为:到“验 O”时,start=2,word='验' ;到“报 B”时,start=4,word=“验报”;到“告 E”时,end=6,word='验报告'

对于问题3,实际情况如下:
他 O
的 O
检 B
验 I
报 B
告 E
等 O
。 O
产生原因为:到“验 O”时,start=2,word='检验' ;到“报 B”时,start=4,word=“检验报”;到“告 E”时,end=6,word='检验报告'

from chinesener.

zhiyuanding avatar zhiyuanding commented on June 11, 2024

问题正常,可根据实际情况,自行调整。

from chinesener.

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.