-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (150 loc) · 3.57 KB
/
pyproject.toml
File metadata and controls
163 lines (150 loc) · 3.57 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "chunkformer"
version = "1.2.2"
authors = [
{name = "khanld", email = "khanhld218@gmail.com"},
]
description = "ChunkFormer: Masked Chunking Conformer For Long-Form Speech Transcription"
readme = "README.md"
license = {text = "CC-BY-4.0"}
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: Other/Proprietary License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Multimedia :: Sound/Audio :: Speech",
]
dependencies = [
"torch>=2.5.1",
"torchaudio>=2.5.1",
"transformers>=4.20.0",
"PyYAML>=5.4.0",
"pandas>=1.3.0",
"tqdm>=4.62.0",
"jiwer>=2.3.0",
"colorama>=0.4.4",
"pydub>=0.25.0",
"huggingface_hub>=0.10.0",
"Pillow",
"sentencepiece",
"tensorboard",
"tensorboardX",
"textgrid",
"deepspeed>=0.14.0",
"librosa",
"langid",
]
keywords = [
"speech-recognition",
"asr",
"chunkformer",
"transformer",
"conformer",
"pytorch",
"long-form-audio",
"machine-learning",
"deep-learning",
]
[project.optional-dependencies]
dev = [
"pytest>=6.0.0",
"black==25.9.0",
"flake8==6.0.0",
"flake8-pyproject>=1.2.0",
"isort==5.12.0",
"mypy==1.5.1",
"pre-commit>=3.0.0",
"types-PyYAML>=6.0.0",
"autopep8>=2.0.0",
"autoflake>=2.0.0",
]
[project.scripts]
chunkformer-decode = "chunkformer.chunkformer_model:main"
[project.urls]
Homepage = "https://github.com/khanld/chunkformer"
Documentation = "https://github.com/khanld/chunkformer/blob/main/README.md"
Repository = "https://github.com/khanld/chunkformer"
"Bug Reports" = "https://github.com/khanld/chunkformer/issues"
Paper = "https://github.com/khanld/chunkformer/blob/main/docs/paper.pdf"
[tool.setuptools.packages.find]
where = ["."]
include = ["chunkformer*"]
exclude = ["tests*"]
[tool.black]
line-length = 100
target-version = ['py311']
[tool.isort]
profile = "black"
line_length = 100
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--disable-warnings",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"performance: marks tests as performance tests",
]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
[tool.flake8]
max-line-length = 100
extend-ignore = ["E203", "W503", "B008", "C416", "EXE001", "E741", "E731"]
exclude = [
".git",
"__pycache__",
"build",
"dist",
".eggs",
"*.egg-info",
".venv",
".env"
]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
exclude = [
"tests/",
"setup.py"
]
[[tool.mypy.overrides]]
module = "streamlit.*"
ignore_errors = true
[tool.autopep8]
max-line-length = 100
aggressive = 2
exclude = ".git,__pycache__,build,dist,.eggs,*.egg-info,.venv,.env"
[tool.autoflake]
remove-all-unused-imports = true
remove-unused-variables = true
remove-duplicate-keys = true
exclude = [
".git",
"__pycache__",
"build",
"dist",
".eggs",
"*.egg-info",
".venv",
".env"
]