-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEW: add a report summary #63
Conversation
This looks good, but do you think it is worth being more explicit about the dependencies required for the new example, as it won't run out of the box as it is? |
probably yes, I'm not having the whole picture, can you give a concrete example? in the meantime, I will just merge this, if you agree. |
my point was that if you try to run the example without installing the dependencies, it failed, and there's no way to know what you need to install except by running the script and seeing the various errors like:
Might be nice to include a list of dependencies for the example somewhere. |
ah ok - I see your point - I will try to fix this |
Also it seems like line 11 of the Makefile is failing on my system:
make virtualenv
Do you have any thoughts about moving to poetry for managing dependencies/build/upload to pypi etc? This would also resolve any virtualenv issues |
I've never worked with poetry - have you before? I'm looking into poetry |
yes, we started recently, and it's actually pretty good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to approve this to keep things moving, I think our poetry question is probably out of scope for this PR in any case!
sorry Matt I have too much on my plate - I will merge but let's keep in mind to use poetry for deps + dev env. managing |
Main Changes
Added two new functions:
summary_report_ent()
: print of the evaluation results, aggregated by entity type and for a specific given scenario (i.e.,strict
,ent_type
,partial
,exact
)summary_report_overall()
: the report over all entities for the 4 possible scenariosExample of the output:
Other "minor" changes:
examples/example_no_loader.py
pre-commit
andsetup.cfg
stuff, so thatmypy
is not applied totests/
andexamples/
make clean_venv
only to remove the virtual environmentcodecov
being now non-existentcollect_named_entities()
was duplicated, removed it from one filenerevaluate.py
and updated the type definition since it was wrongnerevauate.py
toevaluate.py
since I was having lots of conflicts, was the easiast fixe