public TreeReaderFactory treeReaderFactory ( ) { return new TreeReaderFactory ( ) { public TreeReader newTreeReader ( Reader in ) { return new PennTreeReader ( in , new LabeledScoredTreeFactory ( ) , new NPTmpRetainingTreeNormalizer ( englishTrain . splitTMP , englishTrain . splitSGapped == 5 , englishTrain . leaveItAll , englishTrain . splitNPADV >= 1 , headFinder ( ) ) ) ; } } ; }
Makes appropriate TreeReaderFactory with all options specified