Tgrep2-style utility for matching patterns in trees, and a tree-transformation utility built on top of this matching language. #Match patterns #Tree pattern match #Tree relationship #Match #Matcher #Tree
Tregex is a free and open-source utility to match patterns in trees, based on tree relationships and regular expression matches on nodes (the name is short for "tree regular expressions").
Tregex and Tsurgeon contains essentially the same functionality as TGrep2 (which had a superset of the functionality of the original tgrep), plus several extremely useful relations for natural language trees, for example "A is the lexical head of B", and "A and B share a (hand-specified) variable substring" (useful for finding nodes coindexed with each other).
Because it does not create preprocessed indexed corpus files, it is however somewhat slower than TGrep2 when searching over large treebanks. As a Java application, it is platform independent, and can be used programmatically in Java software.
There is also both a graphical interface (also platform independent) and a command line interface through the TregexPattern main method. To launch the graphical interface double click the stanford-tregex.jar file.
Detailed instructions on how to install and use the Tregex and Tsurgeon utility on your Mac are available HERE.
Tregex and Tsurgeon is a cross-platform utility capable of running on any operating system that comes with Java support (e.g. Mac OS X, Windows, Linux).
System requirements
What's new in Tregex and Tsurgeon 2.0.2:
- Regex matching efficiency improvement.
Tregex and Tsurgeon 2.0.2
add to watchlist add to download basket send us an update REPORT- runs on:
- Mac OS X (-)
- file size:
- 7.1 MB
- main category:
- Educational
- developer:
- visit homepage