public PennTreebankReader(String treebankHome,String[] sections,String parseViewName) throws Exception {
  super(CorpusReaderConfigurator.buildResourceManager(PENN_TREEBANK_WSJ,treebankHome));
  this.parseViewName=parseViewName;
  combinedWSJHome=treebankHome;
  if (sections == null)   this.sections=IOUtils.lsDirectories(combinedWSJHome);
 else {
    this.sections=new String[sections.length];
    System.arraycopy(sections,0,this.sections,0,sections.length);
  }
  updateCurrentFiles();
}

public PennTreebankReader ( String treebankHome , String [ ] sections , String parseViewName ) throws Exception { super ( CorpusReaderConfigurator . buildResourceManager ( PENN_TREEBANK_WSJ , treebankHome ) ) ; this . parseViewName = parseViewName ; combinedWSJHome = treebankHome ; if ( sections == null ) this . sections = IOUtils . lsDirectories ( combinedWSJHome ) ; else { this . sections = new String [ sections . length ] ; System . arraycopy ( sections , 0 , this . sections , 0 , sections . length ) ; } updateCurrentFiles ( ) ; }
reads the specified sections from penn treebank
