public static Edu.Stanford.Nlp.Objectbank.ObjectBank <X> GetLineIterator <X>(Reader reader, IFunction <string, X> op) { ReaderIteratorFactory rif = new ReaderIteratorFactory(reader); IIteratorFromReaderFactory <X> ifrf = LineIterator.GetFactory(op); return(new Edu.Stanford.Nlp.Objectbank.ObjectBank <X>(rif, ifrf)); }
public static Edu.Stanford.Nlp.Objectbank.ObjectBank <X> GetLineIterator <X, _T1>(ICollection <_T1> filesStringsAndReaders, IFunction <string, X> op, string encoding) { ReaderIteratorFactory rif = new ReaderIteratorFactory(filesStringsAndReaders, encoding); IIteratorFromReaderFactory <X> ifrf = LineIterator.GetFactory(op); return(new Edu.Stanford.Nlp.Objectbank.ObjectBank <X>(rif, ifrf)); }
public static Edu.Stanford.Nlp.Objectbank.ObjectBank <X> GetLineIterator <X>(File file, Func <string, X> op, string encoding) { ReaderIteratorFactory rif = new ReaderIteratorFactory(file, encoding); IIteratorFromReaderFactory <X> ifrf = LineIterator.GetFactory(op); return(new Edu.Stanford.Nlp.Objectbank.ObjectBank <X>(rif, ifrf)); }