Git Product home page Git Product logo

Comments (1)

qiufengyuyi avatar qiufengyuyi commented on September 6, 2024

https://github.com/qiufengyuyi/sequence_tagging/blob/master/models/bert_mrc.py
然后看到代码中关于bert_mrc计算f1时,不应该是根据实体来计算的吗
image
看代码中是根据start end指针来分开计算的吗

最近也在复现bert-mrc模型,基于MSRA数据集,但是效果10个epoch F1只能达到 0.64,50个epoch效果会好点。但是也到不了0.9多,不知道是哪里存在问题了。

然后在根据start end指针提取实体的时候,会遇到start指针有些不能与end指针匹配上的问题。

1、截图中的f1计算方法只是在train_and_evaluate时候观察训练状态用的,最后inference的时候我是计算的span-level的f1。具体内容在load_and_predict.py里面
2、试试学习率调一下?

from sequence_tagging.

Related Issues (12)

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.