public static void main ( String [ ] args ) { Treebank treebank = new DiskTreebank ( ) ; treebank . loadPath ( args [ 0 ] ) ; WordStemmer ls = new WordStemmer ( ) ; for ( Tree tree : treebank ) { ls . visitTree ( tree ) ; System . out . println ( tree ) ; } }
Reads stems and prints the trees in the file .