Skip to content

Commit

Permalink
fixed invaled dependencies
Browse files Browse the repository at this point in the history
fixed invalid pyproject configuration
added missing __init__.py files
updated readme
  • Loading branch information
stefantaubert committed May 31, 2022
1 parent df75eb4 commit 57183c8
Show file tree
Hide file tree
Showing 21 changed files with 332 additions and 258 deletions.
10 changes: 5 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ autoflake = "*"
twine = "*"

[packages]
scipy = "*"
numpy = "*"
tqdm = "*"
scipy = ">=1.8.0"
numpy = ">=1.18.5"
tqdm = ">=4.63.0"
TextGrid = ">=1.5"
pandas = "*"
pandas = ">=1.4.0"
ordered-set = ">=4.1.0"
matplotlib = "*"
matplotlib = ">=3.5.0"
pronunciation-dictionary = ">=0.0.4"

[requires]
Expand Down
446 changes: 241 additions & 205 deletions Pipfile.lock

Large diffs are not rendered by default.

81 changes: 44 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,38 @@ CLI to modify TextGrids and their corresponding audio files.
## Features

- grids
- merge grids together
- export vocabulary out of multiple grid files
- plot durations
- exports marks of a tier to a file
- `merge`: merge grids together
- `export-vocabulary`: export vocabulary out of multiple grid files
- `plot-durations`: plot durations
- `export-marks`: exports marks of a tier to a file
- grid
- convert text files to grid files
- synchronize grid minTime and maxTime according to the corresponding audio file
- split a grid file on intervals into multiple grid files (incl. audio files)
- print statistics
- `create`: convert text files to grid files
- `sync`: synchronize grid minTime and maxTime according to the corresponding audio file
- `split`: split a grid file on intervals into multiple grid files (incl. audio files)
- `print-stats`: print statistics
- tiers
- apply mapping table to marks
- transcribe words of tiers using a pronunciation dictionary
- remove tiers
- remove symbols from tiers
- mark silence intervals
- `apply-mapping`: apply mapping table to marks
- `transcribe`: transcribe words of tiers using a pronunciation dictionary
- `remove`: remove tiers
- `remove-symbols`: remove symbols from tiers
- `mark-silence`: mark silence intervals
- tier
- rename tier
- clone tier
- copy tier from one grid to another
- map tier to other tiers
- move tier to another position
- export content of tier to a txt file
- import content of tier from a txt file
- `rename`: rename tier
- `clone`: clone tier
- `map`: map tier to other tiers
- `move`: move tier to another position
- `export`: export content of tier to a txt file
- `import`: import content of tier from a txt file
- intervals
- join intervals between pauses
- join intervals by boundaries of a tier
- join intervals by a duration
- join intervals containing specific marks
- join intervals containing specific symbols
- align boundaries of tiers according to a reference tier
- split intervals
- remove intervals
- plot durations
- `join-between-pauses`: join intervals between pauses
- `join-by-boundary`: join intervals by boundaries of a tier
- `join-by-duration`: join intervals by a duration
- `join-marks`: join intervals containing specific marks
- `join-symbols`: join intervals containing specific symbols
- `fix-boundaries`: align boundaries of tiers according to a reference tier
- `split`: split intervals
- `remove`: remove intervals
- `plot-durations`: plot durations

## Roadmap

Expand All @@ -62,14 +61,14 @@ textgrid-tools-cli

## Dependencies

- scipy
- numpy
- tqdm
- TextGrid >= 1.5
- pandas
- matplotlib
- ordered-set >=4.1.0
- pronunciation-dictionary >=0.0.4
- numpy>=1.18.5
- scipy>=1.8.0
- tqdm>=4.63.0
- TextGrid>=1.5
- pandas>=1.4.0
- ordered_set>=4.1.0
- matplotlib>=3.5.0
- pronunciation_dictionary>=0.0.4

## Troubleshooting

Expand All @@ -81,6 +80,14 @@ sudo apt-get install ffmpeg -y
ffmpeg -i *.mp3 -acodec pcm_s16le -ar 22050 *.wav
```

## License

MIT License

## Acknowledgments

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410

## Citation

If you want to cite this repo, you can use this BibTeX-entry:
Expand Down
35 changes: 25 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "textgrid-tools"
version = "0.0.3"
description = "CLI to modify TextGrids and their corresponding audio files."
readme = "README.md"
requires-python = ">=3.6"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "Stefan Taubert", email = "[email protected]"}
Expand Down Expand Up @@ -31,21 +31,19 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"scipy",
"numpy",
"tqdm",
"numpy>=1.18.5",
"scipy>=1.8.0",
"tqdm>=4.63.0",
"TextGrid>=1.5",
"pandas",
"pandas>=1.4.0",
"ordered_set>=4.1.0",
"matplotlib",
"matplotlib>=3.5.0",
"pronunciation_dictionary>=0.0.4",
]

Expand All @@ -63,12 +61,14 @@ include = [
"textgrid_tools.*",
"textgrid_tools_cli",
"textgrid_tools_cli.*",
"textgrid_tools_tests",
"textgrid_tools_tests.*",
"textgrid_tools_cli_tests",
"textgrid_tools_cli_tests.*",
]
exclude = [
"textgrid_tools_tests",
"textgrid_tools_debug",
"textgrid_tools_cli_debug",
"textgrid_tools_cli_tests",
"textgrid_tools_old"
]
namespaces = true
Expand Down Expand Up @@ -104,6 +104,21 @@ known_third_party = [
"pronunciation_dictionary"
]

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310}
isolated_build = True
[testenv]
deps =
pytest
commands =
pytest
textgrid-tools-cli
"""


[build-system]
requires = [
"setuptools >= 40.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/textgrid_tools_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def print_features():
for parser_name, (methods, help_str) in parsers.items():
print(f"- {parser_name}")
for command, description, method in methods:
print(f" - {description}")
print(f" - `{command}`: {description}")


def _init_parser():
Expand Down
1 change: 1 addition & 0 deletions src/textgrid_tools_cli_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/intervals/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/intervals/py_common/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/intervals/py_removing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/py_helper/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/tier/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/tier/py_moving/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions src/textgrid_tools_tests/tiers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#

0 comments on commit 57183c8

Please sign in to comment.