-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (58 loc) · 1.44 KB
/
pyproject.toml
File metadata and controls
64 lines (58 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[project]
name = "mbrs"
version = "0.1.8"
description = "A library for minimum Bayes risk (MBR) decoding."
readme = "README.md"
authors = [
{ name = "Hiroyuki Deguchi", email = "deguchi.hiroyuki.db0@is.naist.jp" }
]
requires-python = ">=3.10"
dependencies = [
"bert-score>=0.3.13",
"bleurt-pytorch>=0.0.1",
"fastchrf>=0.1.0",
"numpy>=1.26.4",
"sacrebleu[ja]>=2.5.0",
"simple-parsing>=0.1.7",
"tabulate>=0.9.0",
"torch>=2.5.1",
"tqdm>=4.67.1",
"unbabel-comet>=2.2.6",
]
[project.scripts]
mbrs-decode = "mbrs.cli.decode:cli_main"
mbrs-generate = "mbrs.cli.generate:cli_main"
mbrs-score = "mbrs.cli.score:cli_main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.run]
omit = ["*_test.py"]
[tool.ruff.lint]
extend-select = ["I"]
[tool.pytest.ini_options]
markers = [
"metrics_bertscore: Test for BERTScore",
"metrics_bleurt: Test for BLEURT",
"metrics_xcomet: Test for xCOMET",
"metrics_xcometlite: Test for xCOMET-lite",
"metrics_metricx23: Test for MetricX-23",
"metrics_metricx23qe: Test for MetricX-23-QE",
"metrics_metricx24: Test for MetricX-24"
]
[dependency-groups]
dev = [
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"ptpython>=3.0.29",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"ruff>=0.8.3",
]
docs = [
"sphinx>=8.1.3",
"sphinx-argparse>=0.5.2",
"sphinx-book-theme>=1.1.3",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
]