Comments (2)
I'd also like to know that.
In the code the eval_type = 'partial_matching'
does not seem to be reachable:
for eval_type in ['strict', 'ent_type']:
[...]
if eval_type == 'partial_matching':
precision = (correct + 0.5 * partial) / actual if actual > 0 else 0
recall = (correct + 0.5 * partial) / possible if possible > 0 else 0
else:
precision = correct / actual if actual > 0 else 0
recall = correct / possible if possible > 0 else 0
[...]
from ner-evaluation.
Hi, thanks for the feedback :)
So, reading through the SemEval guidelines once cannot understand which evaluation scenarios have partial counts
, but from the examples in the reference document it seems that partial counts
can only happen in a Partial
and Type
evaluation scenario.
I've updated my code accordingly, also added some tests, feel free to comment it and/or improve it.
Thanks for the feedback,
David
from ner-evaluation.
Related Issues (16)
- sklearn_crfsuite add bigram feature? HOT 1
- Create module and accept other formats HOT 8
- Different possible input formats HOT 3
- range is wrong for only 1 token span HOT 2
- Counting spurious entities HOT 5
- find_overlap question HOT 3
- true_which_overlapped_with_pred does not get updated properly
- collect_named_entities skip over entities HOT 5
- Aggregated by entity type results possible error HOT 3
- .
- Loop breaks stop looking for predicted entities that may overlap with true entities
- Pin scikit-learn==0.23.2 HOT 1
- Incorrect entities extraction HOT 2
- Some problems with evaluation_agg_entities_type HOT 9
- True entities considered multiple times HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ner-evaluation.