-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit b6bb15c
Showing
5 changed files
with
169 additions
and
0 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,19 @@ | ||
Copyright 2024 ARC ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,27 @@ | ||
# Metrics for Speech Translation (M4ST) | ||
|
||
[![Actions Status][actions-badge]][actions-link] | ||
|
||
Evaluation of metrics for Speech Translation | ||
|
||
## Installation | ||
|
||
From source: | ||
```bash | ||
git clone https://github.com/alan-turing-institute/ARC-M4ST | ||
cd ARC-M4ST | ||
python -m pip install . | ||
``` | ||
|
||
## Usage | ||
|
||
|
||
## License | ||
|
||
Distributed under the terms of the [MIT license](LICENSE). | ||
|
||
|
||
<!-- prettier-ignore-start --> | ||
[actions-badge]: https://github.com/alan-turing-institute/ARC-M4ST/workflows/CI/badge.svg | ||
[actions-link]: https://github.com/alan-turing-institute/ARC-M4ST/actions | ||
<!-- prettier-ignore-end --> |
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,113 @@ | ||
[build-system] | ||
requires = ["setuptools>=61"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "Metrics for Speech Translation (M4ST)" | ||
version = "0.1.0" | ||
authors = [ | ||
{ name = "Applied Research Centre", email = "[email protected]" }, | ||
] | ||
description = "Evaluation of metrics for Speech Translation" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Development Status :: 1 - Planning", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering", | ||
"Typing :: Typed", | ||
] | ||
dependencies = [] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest >=6", | ||
"pytest-cov >=3", | ||
"pre-commit", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/alan-turing-institute/ARC-M4ST" | ||
"Bug Tracker" = "https://github.com/alan-turing-institute/ARC-M4ST/issues" | ||
Discussions = "https://github.com/alan-turing-institute/ARC-M4ST/discussions" | ||
Changelog = "https://github.com/alan-turing-institute/ARC-M4ST/releases" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"] | ||
xfail_strict = true | ||
filterwarnings = [ | ||
"error", | ||
] | ||
log_cli_level = "INFO" | ||
testpaths = [ | ||
"tests", | ||
] | ||
|
||
[tool.coverage] | ||
run.source = ["m4st"] | ||
port.exclude_lines = [ | ||
'pragma: no cover', | ||
'\.\.\.', | ||
'if typing.TYPE_CHECKING:', | ||
] | ||
|
||
[tool.mypy] | ||
files = ["src", "tests"] | ||
python_version = "3.10" | ||
show_error_codes = true | ||
warn_unreachable = true | ||
disallow_untyped_defs = false | ||
disallow_incomplete_defs = false | ||
check_untyped_defs = true | ||
strict = false | ||
|
||
|
||
[tool.ruff] | ||
src = ["src"] | ||
exclude = [] | ||
line-length = 88 # how long you want lines to be | ||
|
||
[tool.ruff.format] | ||
docstring-code-format = true # code snippets in docstrings will be formatted | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", "F", "W", # flake8 | ||
"B", # flake8-bugbear | ||
"I", # isort | ||
"ARG", # flake8-unused-arguments | ||
"C4", # flake8-comprehensions | ||
"EM", # flake8-errmsg | ||
"ICN", # flake8-import-conventions | ||
"ISC", # flake8-implicit-str-concat | ||
"G", # flake8-logging-format | ||
"PGH", # pygrep-hooks | ||
"PIE", # flake8-pie | ||
"PL", # pylint | ||
"PT", # flake8-pytest-style | ||
"RET", # flake8-return | ||
"RUF", # Ruff-specific | ||
"SIM", # flake8-simplify | ||
"UP", # pyupgrade | ||
"YTT", # flake8-2020 | ||
"EXE", # flake8-executable | ||
] | ||
ignore = [ | ||
"PLR", # Design related pylint codes | ||
"ISC001", # Conflicts with formatter | ||
] | ||
unfixable = [ | ||
"F401", # Would remove unused imports | ||
"F841", # Would remove unused variables | ||
] | ||
flake8-unused-arguments.ignore-variadic-names = true # allow unused *args/**kwargsisort.required-imports = ["from __future__ import annotations"] |
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,10 @@ | ||
""" | ||
Metrics for Speech Translation (M4ST): Evaluation of metrics for Speech Translation | ||
""" | ||
|
||
from __future__ import annotations | ||
|
||
from importlib.metadata import version | ||
|
||
__all__ = ("__version__",) | ||
__version__ = version(__name__) |
Empty file.