Tsurgeon

Tsurgeon is a tree-transformation utility built on top of the Tregex tree-matching engine. As a Java application, it is platform independent, and can be used programmatically in Java software. There is also a graphical interface accessible by opening the stanford-tregex.jar file and a command line interface through the Tsurgeon main method.

Tsurgeon was written by Roger Levy. It also contains the entire Tregex distribution, which was written by Galen Andrew and Roger Levy, and relies on classes developed by others as part of the Stanford JavaNLP project. The graphical interface for Tregex and Tsurgeon was written by Anna Rafferty.

Tsurgeon is licensed under the GNU GPL. (Note that this is the full GPL, which allows its use for research purposes, free software projects, etc., but does not allow its incorporation into any type of distributed proprietary software, even in part or in translation. Source is included. The package includes components for command-line invocation and a Java API.

The download is a 4.3 Mb gzipped tar file. It contains:

  1. README-tregex.txt -- Basic information about the distribution, including a "quickstart" guide.
  2. README-tsurgeon.txt -- information about Tsurgeon.
  3. README-gui.txt -- information about using the graphical interface
  4. LICENSE -- Tregex is licensed under the Gnu General Public License.
  5. stanford-tregex.jar -- This is a JAR file containing all the Stanford classes necessary to run tregex.
  6. src directory -- a directory with the source files for Tregex and Tsurgeon
  7. lib directory -- library files required for recompiling the distribution
  8. build.xml, Makefile -- files for recompiling (with ant or make) the distribution
  9. javadoc -- Javadocs for the distribution.
  10. tregex.sh, tsurgeon.sh -- sample scripts for running Tregex and Tsurgeon from the command line
  11. examples directory -- example files for Tregex and Tsurgeon

Note that the Tsurgeon distribution is identical to the Tregex distribution, so there is no need to download both.

Download Tsurgeon version 1.1

Release history

Version 1.02005-07-28 Initial release
Version 1.0.12005-09-15 Bugfixes in Tregex distribution
Version 1.12007-09-20 Additional operations and graphical interface added