/// <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)); }
/// <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)); }