Skip to content

A few (limited) functions useful for working with the Penn Treebank.

Notifications You must be signed in to change notification settings

caggazzotti/ptb-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

A few useful (but limited) functions for working with the Penn Treebank.

printTreeLoc(file, string) - prints the location of a tree with the matching regex string to the console.

writeTreeLoc(file, string, wfile) - writes the location to whatever file specified in wfile.

printTree(tree-loc-line) - prints the tree specified in tree-loc-line to the console.

writeTree(tree-loc-line, wfile) writes the tree specified in tree-loc-line to the file in wfile.

multiFileHelper(folder-location, file-extension, function, fxn-arguments) - runs function (printTreeLoc, writeTreeLoc) over all files with file-extension in folder-location. (very useful for running a search in e.g. ontonotes)

About

A few (limited) functions useful for working with the Penn Treebank.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%