Git Product home page Git Product logo

Comments (6)

jiesutd avatar jiesutd commented on August 16, 2024

Hi @caoxu915683474 , which task do you want to train? NER? Generally set the iteration as 100 is enough, 15000 is way too much! If you trained your model on CoNLL 2003 English NER data, the F1=0.7 is too low, you need to check you input data.

The calculation of F1-score is based on precision and recall. Different implementations may have different name, but the equation should be same. You can refer https://en.wikipedia.org/wiki/F1_score for more information about F1-score.

from ncrfpp.

caoxu915683474 avatar caoxu915683474 commented on August 16, 2024

Thanks for your quick answer , I just use the data that in your work. And thanks for the help with F1. So what I only do is clone your project and set the iteration as 15000 and run it without any change.

from ncrfpp.

jiesutd avatar jiesutd commented on August 16, 2024

The provided data is a sample data. It does not contain the whole dataset in CoNLL03. You need to get the original full data and the embeddings to reproduce my result.

from ncrfpp.

udion avatar udion commented on August 16, 2024

I think get_ner_BIO() in metric.py is wrong.

consider the example where label_list = [I-MISC, I-MISC, O, I-PER, I-PER, O, O, O, O, O I-ORG, O] according to current function the following will happen :

Since there is no tag involving B-, whole_tag and tag_index will always be [] and hence the output of the function is [] which is wrong?

I am unable to find CoNLL-2003 in BIOMES format, is it available from official CoNLL website? If not can you provide reference to convert BIOMES to BIO?

from ncrfpp.

jiesutd avatar jiesutd commented on August 16, 2024

@udion The metric.py is not wrong, but you are using wrong data format. BE RESPECT TO OTHERS' WORK!

You should learn the difference of BIO/BIOES/IOB and then you can write a script to convert the data format between these tag scheme.

from ncrfpp.

udion avatar udion commented on August 16, 2024

@jiesutd yes, sorry foolish of me
the above mentioned example is not even valid BIOES or BIO format so obviously get_ner_BIO() won't function the way it should be. forgive me for my noobness.

Thanks, I wrote a script to convert (what seems like IOB) to BIOES. I am a noob though and got to know about CoNLL few days back, I was wondering how you guys check if different versions (BIOES/BIO/IOB) data are correct, do you guys have an exhaustive set of tagged sequences on which you check your conversion scripts?

( P.S. please don't mind dumb questions )

from ncrfpp.

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.