public Instance next () { Instance ret = (Instance)next; setNext(); return ret; }
/** NOTE!: Assumes that <code>segmentStartTags[i]</code> corresponds to <code>segmentContinueTags[i]</code>. @param model model to segment input sequences @param ilist list of instances to be segmented @param segmentStartTags array of tags indicating the start of a segment @param segmentContinueTags array of tags indicating the continuation of a segment */ public SegmentIterator (Transducer model, InstanceList ilist, Object[] segmentStartTags, Object[] segmentContinueTags) { setSubIterator (model, ilist, segmentStartTags, segmentContinueTags); }
public FileListIterator(String[] filenames, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) { this(FileIterator.stringArray2FileArray(filenames), fileFilter, targetPattern, removeCommonPrefix); }
public Iterator pipe (File directory) { return new FileIterator (directory, fileFilter, labelPattern); }
public FileListIterator(String[] filenames, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) { this(FileIterator.stringArray2FileArray(filenames), fileFilter, targetPattern, removeCommonPrefix); }
public ConcatenatedInstanceIterator (Iterator<Instance>[] iterators) { this.iterators = iterators; this.iteratorIndex = 0; setNext(); }
/** NOTE!: Assumes that <code>segmentStartTags[i]</code> corresponds to <code>segmentContinueTags[i]</code>. @param model model to segment input sequences @param ilist list of instances to be segmented @param segmentStartTags array of tags indicating the start of a segment @param segmentContinueTags array of tags indicating the continuation of a segment */ public SegmentIterator (Transducer model, InstanceList ilist, Object[] segmentStartTags, Object[] segmentContinueTags) { setSubIterator (model, ilist, segmentStartTags, segmentContinueTags); }
public Iterator pipe (File directory) { return new FileIterator (directory, fileFilter, labelPattern); }
public FileListIterator(String[] filenames, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) { this(FileIterator.stringArray2FileArray(filenames), fileFilter, targetPattern, removeCommonPrefix); }
public Instance next () { Instance ret = (Instance)next; setNext(); return ret; }
/** NOTE!: Assumes that <code>segmentStartTags[i]</code> corresponds to <code>segmentContinueTags[i]</code>. @param model model to segment input sequences @param ilist list of instances to be segmented @param segmentStartTags array of tags indicating the start of a segment @param segmentContinueTags array of tags indicating the continuation of a segment */ public SegmentIterator (Transducer model, InstanceList ilist, Object[] segmentStartTags, Object[] segmentContinueTags) { setSubIterator (model, ilist, segmentStartTags, segmentContinueTags); }
public FileIterator (String[] directories, FileFilter ff) { this (stringArray2FileArray(directories), ff, null); }
public ConcatenatedInstanceIterator (Iterator<Instance>[] iterators) { this.iterators = iterators; this.iteratorIndex = 0; setNext(); }
/** Useful when no {@link Transduce} is specified. A list of sequences specifies the output. @param ilist InstanceList containing sequence. @param segmentStartTags array of tags indicating the start of a segment @param segmentContinueTags array of tags indicating the continuation of a segment @param predictions list of {@link Sequence}s that are the predicted output of some {@link Transducer} */ public SegmentIterator (InstanceList ilist, Object[] startTags, Object[] inTags, ArrayList predictions) { setSubIterator (ilist, startTags, inTags, predictions); }
public FileIterator (String[] directories, Pattern targetPattern) { this (stringArray2FileArray(directories), targetPattern); }
public ConcatenatedInstanceIterator (Iterator<Instance>[] iterators) { this.iterators = iterators; this.iteratorIndex = 0; setNext(); }
/** Useful when no {@link Transduce} is specified. A list of sequences specifies the output. @param ilist InstanceList containing sequence. @param segmentStartTags array of tags indicating the start of a segment @param segmentContinueTags array of tags indicating the continuation of a segment @param predictions list of {@link Sequence}s that are the predicted output of some {@link Transducer} */ public SegmentIterator (InstanceList ilist, Object[] startTags, Object[] inTags, ArrayList predictions) { setSubIterator (ilist, startTags, inTags, predictions); }
public FileIterator (String[] directories, Pattern targetPattern) { this (stringArray2FileArray(directories), targetPattern); }
public Instance next () { Instance ret = (Instance)next; setNext(); return ret; }
public FileIterator (String[] directories, Pattern targetPattern, boolean removeCommonPrefix) { this (stringArray2FileArray(directories), targetPattern, removeCommonPrefix); }