https://github.com/m2ci-msp/jtgt
Java TextGridTools
https://github.com/m2ci-msp/jtgt
annotation java praat textgrid textgridtools
Last synced: about 1 year ago
JSON representation
Java TextGridTools
- Host: GitHub
- URL: https://github.com/m2ci-msp/jtgt
- Owner: m2ci-msp
- License: lgpl-3.0
- Created: 2017-06-13T13:44:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-15T07:40:10.000Z (over 3 years ago)
- Last Synced: 2025-05-12T22:54:08.168Z (about 1 year ago)
- Topics: annotation, java, praat, textgrid, textgridtools
- Language: Java
- Homepage:
- Size: 386 KB
- Stars: 2
- Watchers: 0
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/m2ci-msp/jtgt/actions/workflows/main.yml)
[](https://www.gnu.org/licenses/lgpl-3.0)
# JTGT
JTGT is a Java library for loading, manipulating, and writing [Praat] TextGrid files, and similar annotation files, such as XWaves lab.
It's inspired by the [TextGridTools] module for Python.
## Dependency Information
Snapshot builds are [OSSRH].
Release versions are hosted on [OSSRH] and indexed in [Maven Central].
## Examples
### Loading a TextGrid file
```java
String tgStr = new File("path/to/my.TextGrid").getText();
TextGrid tg = new TextGridSerializer().fromString(tgStr);
```
### Iterating over intervals
```java
for (Annotation annot : tg.getTiers().get(0).getAnnotations()) {
System.out.println(annot.getText());
}
```
## [Javadoc]
[Praat]: https://praat.org/
[TextGridTools]: https://github.com/hbuschme/TextGridTools
[OSSRH]: https://s01.oss.sonatype.org/
[Maven Central]: https://search.maven.org/
[Javadoc]: https://m2ci-msp.github.io/jtgt/docs/javadoc/