https://github.com/hadware/textgrid-parser
https://github.com/hadware/textgrid-parser
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hadware/textgrid-parser
- Owner: hadware
- Created: 2022-08-24T12:10:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T12:56:21.000Z (over 3 years ago)
- Last Synced: 2025-01-30T15:44:44.455Z (11 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Textgrid parser
A barebone, `sly`-based (LALR(1)) parser for textgrid files
## Installation
This repo will be uploaded to pipy's repository at some point. For the time being,
```shell
pip install git+ssh://git@github.com/hadware/textgrid-parser.git
```
## Parsing a Textgrid
```python
from textgrid_parser import parse_textgrid
tiers = parse_textgrid("my_textgrid.TextGrid", check_consistency=True, textgrid_format="full")
```