All Projects → yohasebe → rsyntaxtree

yohasebe / rsyntaxtree

Licence: other
Syntax tree generator made with Ruby and RMagic

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to rsyntaxtree

eliza-rs
A rust implementation of ELIZA - a natural language processing program developed by Joseph Weizenbaum in 1966.
Stars: ✭ 48 (-22.58%)
Mutual labels:  linguistics
clinical nlp elastic
Clinical NLP Analysis with Elasticsearch and Kibana
Stars: ✭ 32 (-48.39%)
Mutual labels:  linguistics
TextGridTools
Read, write, and manipulate Praat TextGrid files with Python
Stars: ✭ 84 (+35.48%)
Mutual labels:  linguistics
lingvo--Ner-ru
Named entity recognition (NER) in Russian texts / Определение именованных сущностей (NER) в тексте на русском языке
Stars: ✭ 38 (-38.71%)
Mutual labels:  linguistics
Tactful Tokenizer
Accurate Bayesian sentence tokenizer in Ruby.
Stars: ✭ 79 (+27.42%)
Mutual labels:  rubynlp
duree
Durée: the longest book ever written.
Stars: ✭ 67 (+8.06%)
Mutual labels:  linguistics
mlconjug3
A Python library to conjugate verbs in French, English, Spanish, Italian, Portuguese and Romanian (more soon) using Machine Learning techniques.
Stars: ✭ 47 (-24.19%)
Mutual labels:  linguistics
spanish-corpora
Unannotated Spanish 3 Billion Words Corpora
Stars: ✭ 61 (-1.61%)
Mutual labels:  linguistics
TextDatasetCleaner
🔬 Очистка датасетов от мусора (нормализация, препроцессинг)
Stars: ✭ 27 (-56.45%)
Mutual labels:  linguistics
wikipron
Massively multilingual pronunciation mining
Stars: ✭ 167 (+169.35%)
Mutual labels:  linguistics
lameta
The Metadata Editor for Transparent Archiving of language document materials
Stars: ✭ 18 (-70.97%)
Mutual labels:  linguistics
neural-net-linguistics
Papers about NN and linguistics
Stars: ✭ 14 (-77.42%)
Mutual labels:  linguistics
mystem
CGo bindings to Yandex.Mystem
Stars: ✭ 28 (-54.84%)
Mutual labels:  linguistics
NatLang
NatLang is an English parser with an extensible grammar
Stars: ✭ 20 (-67.74%)
Mutual labels:  linguistics
concepticon-data
The curation repository for the data behind Concepticon.
Stars: ✭ 25 (-59.68%)
Mutual labels:  linguistics
LangPad
A word processor/dictionary/generally useful tool for linguistics.
Stars: ✭ 20 (-67.74%)
Mutual labels:  linguistics
folia
FoLiA: Format for Linguistic Annotation - FoLiA is a rich XML-based annotation format for the representation of language resources (including corpora) with linguistic annotations. A wide variety of linguistic annotations are supported, making FoLiA a useful format for NLP tasks and data interchange. Note that the actual Python library for proces…
Stars: ✭ 56 (-9.68%)
Mutual labels:  linguistics
nlp-pure
Natural language processing algorithms implemented in pure Ruby with minimal dependencies
Stars: ✭ 19 (-69.35%)
Mutual labels:  rubynlp
treebender
A HDPSG-inspired symbolic natural language parser written in Rust
Stars: ✭ 24 (-61.29%)
Mutual labels:  linguistics
OpenGNT
Open Greek New Testament Project; NA28 / NA27 Equivalent Text & Resources
Stars: ✭ 55 (-11.29%)
Mutual labels:  linguistics

🌲 RSyntaxTree

RSyntaxTree is a graphical syntax tree generator written in the Ruby programming language inspired by phpSyntaxTree.

Web Interface

See updates and a working web interface available at https://yohasebe.com/rsyntaxtree.

Installation

# gem install rsyntaxtree

Usage

For the web interface, see Usage section of https://yohasebe.com/rsyntaxtree.

For the command-line interface, type $rsyntaxtree -h after installation. Here's what you get:

SyntaxTree, (linguistic) syntax tree generator written in Ruby.

Usage:
       rsyntaxtree [options] "[VP [VP [V set] [NP bracket notation]] [ADV here]]"
where [options] are:
  -o, --outdir=<s>         Output directory (default: ./)
  -f, --format=<s>         Output format: png, gif, jpg, pdf, or svg (default: png)
  -l, --leafstyle=<s>      visual style of tree leaves: auto, triangle, bar, or nothing (default: auto)
  -n, --fontstyle=<s>      Font style (available when ttf font is specified): sans, serif, cjk (default: sans)
  -t, --font=<s>           Path to a ttf font used to generate tree (optional)
  -s, --fontsize=<i>       Size: 8-26 (default: 16)
  -m, --margin=<i>         Margin: 0-10 (default: 1)
  -v, --vheight=<f>        Connector Height: 0.5-5.0 (default: 2.0)
  -c, --color=<s>          Color text and bars: on or off (default: on)
  -y, --symmetrize=<s>     Generate radically symmetrical, balanced tree: on or off (default: off)
  -r, --transparent=<s>    Make background transparent: on or off (default: off)
  -p, --polyline=<s>       draw polyline connectors: on or off (default: off)
  -e, --version            Print version and exit
  -h, --help               Show this message```

See the documentation for more detailed info about the syntax.

Example

Input text

[S
  [NP |R|<>SyntaxTree]
  [VP
    [V generates]
    [NP
      [Adj #\+multilingual\
            \+beautiful]
      [NP syntax\
          trees]
    ]
  ]
]

Output (PNG or SVG)

See RSyntaxTree Examples for more examples

Development

For the latest updates and downloads please visit http://github.com/yohasebe/rsyntaxtree

Author

Yoichiro Hasebe [email protected]

License

RSyntaxTree is distributed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].