[DO NOT MERGE] Citation prototyping#205
Closed
matt-bernhardt wants to merge 5 commits into
Closed
Conversation
568b3d2 to
f8a135a
Compare
f8a135a to
13382dc
Compare
66365ab to
d59da26
Compare
d59da26 to
481f3a3
Compare
481f3a3 to
cdf2e42
Compare
This allows the application to support labelled records for the evaluation of its internal algorithms. Along with this change, the rake task to load search events - which is how labelled data will be supplied to the application - is updated to support a label field. This includes a new test to confirm that support, and a new cassette holding labelled data. Make annotate Rename migration to maintain date order Update migration date after rebasing Run migrations
With the data model and ingestor upgraded, we now build a way for the application to process that labelled data, and calculate an f1 score for the citation detector, and display it in the UI. Fixup Term#score controller method Remove debugging from Term controller score method
Tweaks to rake tasks
Import labels by term phrase, not id
cdf2e42 to
efe1401
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds a few features that I'm using for development of the new citation detector:
/scoreroute that will inspect those labelled terms, and compare the labels to the results of the legacyDetector::Citationclass. The approach used is the f1 score, which is an average of the precision and recall scores.The
citations:exporttask can likely be discarded as we can now get features from the GraphQL endpoint of the application, although there may be use cases for a bulk tool rather than individual queries by term.