-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* AutoMetric structure completed. * version update as 2.1.0 (from 2.0.0). * Test cases added for sequence-classification metrics (accuracy, precision, recall, f1). * Seqeval added to metric requirements in setup.py. * Docstrings revised. * Multiple predictions are added for sequence classification metrics and handled for sequence labeling metrics `seqeval`. - Associated tests are added.
- Loading branch information
1 parent
bca6ca4
commit 8801eb1
Showing
86 changed files
with
2,745 additions
and
591 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
import os | ||
|
||
from jury.core import Jury | ||
from jury.metrics import load_metric | ||
|
||
SOURCE_DIR = os.path.abspath(os.path.dirname(__file__)) | ||
PROJECT_ROOT = os.path.dirname(SOURCE_DIR) | ||
from jury.metrics import AutoMetric, list_metrics, load_metric | ||
|
||
__version__ = "2.0.0" | ||
__version__ = "2.1.0" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
from jury.metrics import Bleu, Meteor, Rouge | ||
|
||
DEFAULT_METRICS = [ | ||
Bleu(params={"max_order": 1}), | ||
Bleu(params={"max_order": 2}), | ||
Bleu(params={"max_order": 3}), | ||
Bleu(params={"max_order": 4}), | ||
Meteor(), | ||
Rouge(), | ||
{"metric_name": "bleu", "compute_kwargs": {"max_order": 1}}, | ||
{"metric_name": "bleu", "compute_kwargs": {"max_order": 2}}, | ||
{"metric_name": "bleu", "compute_kwargs": {"max_order": 3}}, | ||
{"metric_name": "bleu", "compute_kwargs": {"max_order": 4}}, | ||
{"metric_name": "meteor"}, | ||
{"metric_name": "rouge"}, | ||
] |
This file contains 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
Oops, something went wrong.