Esempio n. 1
0
 public CoNLLUDocumentReader()
 {
     this.ifrf = DelimitRegExIterator.GetFactory("\n(\\s*\n)+", new CoNLLUDocumentReader.SentenceProcessor());
 }
 public virtual void Init(string map)
 {
     // this.flags = null;
     this.map = CoreLabel.ParseStringKeys(StringUtils.MapStringToArray(map));
     factory  = DelimitRegExIterator.GetFactory("\n(?:\\s*\n)+", new ColumnDocumentReaderAndWriter.ColumnDocParser(this));
 }
 //TODO: repair this so it works with the feature label/coreLabel change
 public virtual void Init(SeqClassifierFlags flags)
 {
     this.flags = flags;
     factory    = DelimitRegExIterator.GetFactory("\n(\\s*\n)+", new LibSVMReaderAndWriter.ColumnDocParser(this));
 }
Esempio n. 4
0
 public virtual void Init(SeqClassifierFlags flags)
 {
     this.flags = flags;
     this.map   = StringUtils.MapStringToArray(flags.map);
     factory    = DelimitRegExIterator.GetFactory("\n(\\s*\n)+", new MalletReaderAndWriter.MalletDocParser(this));
 }