/// <summary>Inits a new BasicDocument by reading in the text from the given File.</summary>
        /// <seealso cref="BasicDocument{L}.Init{L}(string, string, bool)"/>
        /// <exception cref="System.IO.IOException"/>
        public virtual Edu.Stanford.Nlp.Ling.BasicDocument <L> Init(File textFile, string title, bool keepOriginalText)
        {
            Reader @in = DocumentReader.GetReader(textFile);

            Edu.Stanford.Nlp.Ling.BasicDocument <L> bd = Init(@in, title, keepOriginalText);
            @in.Close();
            return(bd);
        }
 /// <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));
 }