Coder Social home page Coder Social logo

yahshibu / nested-ner-tacl2020-flair Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 1.0 70 KB

Implementation of Nested Named Entity Recognition using Flair

License: GNU General Public License v3.0

Python 100.00%
named-entity-recognition information-extraction natural-language-processing nested-named-entity-recognition

nested-ner-tacl2020-flair's People

Contributors

yahshibu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lisaterumi

nested-ner-tacl2020-flair's Issues

Second best with Flair+BERT

Hi, I am running your model using both BERT and Flair, but it turns out that I get good results when training (i.e., on the validation set), but then when loading the best model to test on the testing partition, the results drop to almost 0 f1-score, what could be the problem? With the other embedding combinations, this does not happen.

Could you check if everything is working ok?

Regards

A question about the evaluation

Hi~

I have a question about the evaluation.
You have mentioned you ran experiments with different random seed 5 times, and you reported the averaged number on each table. But how do you calculate the averaged F1? I guess there are two methods,

  1. average precision and recall scores of each experiment first, and then use these two numbers to calculate the F1 score.
  2. calculate the F1 score of each experiment by using its precision and recall score first and then average these F1 scores.

But I think these two methods will result in different F1 score, which one is the method that you used in your experiments?

def f1(p, r):
    return 2 * p * r / (p + r)


def average(xs):
    return sum(xs) / len(xs)


precisions = [0.1, 0.2, 0.3]
recalls = [0.4, 0.5, 0.6]

print(f1(average(precisions), average(recalls)))  # method 1

f1s = [f1(p, r) for p, r in zip(precisions, recalls)]  # method 2
print(average(f1s))

# 0.28571428571428575
# 0.28190476190476194

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.