Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/norinorin/syntree-gen

A simple syntax tree generator
https://github.com/norinorin/syntree-gen

Last synced: about 1 month ago
JSON representation

A simple syntax tree generator

Awesome Lists containing this project

README

        

# syntree-gen
A constituency-based parse tree generator.

### Phrase markers
syntree-gen takes phrase markers as input. For example, the input `[S [N John] [VP [V hit] [NP [D the] [N ball.]]]]` will result in:


Sample image of the syntax tree generated by syntree-gen

### Installing prerequisites and running
```bash
pip install -r requirements.txt
python -OOm src -h
```