예제 #1
0
 /// <summary>Constructs a new BasicDocument by reading in the text from the given URL.</summary>
 /// <seealso cref="BasicDocument{L}.Init{L}(string, string, bool)"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual Edu.Stanford.Nlp.Ling.BasicDocument <L> Init(URL textURL, string title, bool keepOriginalText)
 {
     return(Init(DocumentReader.GetReader(textURL), title, keepOriginalText));
 }
예제 #2
0
 /// <summary>Inits a new BasicDocument by reading in the text from the given Reader.</summary>
 /// <seealso cref="BasicDocument{L}.Init{L}(string, string, bool)"/>
 /// <exception cref="System.IO.IOException"/>
 public static Edu.Stanford.Nlp.Ling.BasicDocument <L> Init <L>(Reader textReader, string title, bool keepOriginalText)
 {
     return(Init(DocumentReader.ReadText(textReader), title, keepOriginalText));
 }