-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
128 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# exclude: "" | ||
|
||
repos: | ||
# Format Code | ||
- repo: https://github.com/ambv/black | ||
rev: 22.8.0 | ||
hooks: | ||
- id: black | ||
|
||
# Sort imports | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
|
||
# Formatting, Whitespace, etc | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
args: ['--maxkb=1000'] | ||
- id: check-ast | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer | ||
- id: mixed-line-ending | ||
args: ['--fix=no'] | ||
- id: flake8 | ||
# args: ['--ignore=E203,E501,F811,E712,W503'] | ||
args: ['--config=.flake8'] |
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
This file was deleted.
Oops, something went wrong.
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
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,11 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
pytest==7.1.2 | ||
flake8==4.0.1 | ||
black==22.8.0 | ||
scikit-image==0.19.2 | ||
matplotlib==3.5.2 | ||
flake8==4.0.1 | ||
ipykernel==6.9.1 | ||
twine==4.0.1 | ||
matplotlib==3.5.2 | ||
pre-commit | ||
pytest==7.1.2 | ||
scikit-image==0.19.2 | ||
sphinx==7.2.6 | ||
sphinx-press-theme==0.8.0 | ||
twine==4.0.1 |
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,10 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
torch>=1.10.1 | ||
numpy>=1.21.2 | ||
packaging>=23 | ||
pyyaml>=6.0 | ||
tqdm>=4.64.0 | ||
sentence-transformers>=2.2.2 | ||
transformers | ||
torch>=1.10.1 | ||
torchmetrics>=0.11.4 | ||
tqdm>=4.64.0 | ||
transformers |
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 |
---|---|---|
|
@@ -6,20 +6,22 @@ | |
|
||
__author__ = "Etienne Labbé (Labbeti)" | ||
__author_email__ = "[email protected]" | ||
__docs__ = "Audio Captioning Metrics" | ||
__docs_url__ = "https://aac-metrics.readthedocs.io/en/stable/" | ||
__license__ = "MIT" | ||
__maintainer__ = "Etienne Labbé (Labbeti)" | ||
__name__ = "aac-metrics" | ||
__status__ = "Development" | ||
__version__ = "0.5.3" | ||
__version__ = "0.5.4" | ||
|
||
|
||
from .classes.base import AACMetric | ||
from .classes.bert_score_mrefs import BERTScoreMRefs | ||
from .classes.bleu import BLEU | ||
from .classes.cider_d import CIDErD | ||
from .classes.evaluate import Evaluate, DCASE2023Evaluate, _get_metric_factory_classes | ||
from .classes.fer import FER | ||
from .classes.evaluate import DCASE2023Evaluate, Evaluate, _get_metric_factory_classes | ||
from .classes.fense import FENSE | ||
from .classes.fer import FER | ||
from .classes.meteor import METEOR | ||
from .classes.rouge_l import ROUGEL | ||
from .classes.sbert_sim import SBERTSim | ||
|
@@ -28,7 +30,7 @@ | |
from .classes.spider_fl import SPIDErFL | ||
from .classes.spider_max import SPIDErMax | ||
from .classes.vocab import Vocab | ||
from .functional.evaluate import evaluate, dcase2023_evaluate | ||
from .functional.evaluate import dcase2023_evaluate, evaluate | ||
from .utils.globals import ( | ||
get_default_cache_path, | ||
get_default_java_path, | ||
|
@@ -38,7 +40,6 @@ | |
set_default_tmp_path, | ||
) | ||
|
||
|
||
__all__ = [ | ||
"AACMetric", | ||
"BERTScoreMRefs", | ||
|
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
Oops, something went wrong.