class_docstr: Read documents recursively from a directory.
  Each file/line (depends on `lines_are_documents`) is interpreted as a plain text document.
class_docstr_tok: ["Read","documents","recursively","from","a","directory",".","Each","file\/line","(","depends","on","`","lines_are_documents","`",")","is","interpreted","as","a","plain","text","document","."]
docstr: Get length of corpus.
  
  Returns
  -------
  int
      Length of corpus.
docstr_tok: ["Get","length","of","corpus",".","Returns","--","--","--","-","int","Length","of","corpus","."]
code: def __len__(self):
      """Get length of corpus.
  
      Returns
      -------
      int
          Length of corpus.
  
      """
      if self.length is None:
          self._cache_corpus_length()
      return self.length
  
imports: from __future__ import with_statement
  import logging
  import os
  import random
  import re
  import sys
  from gensim import interfaces, utils
  from gensim.corpora.dictionary import Dictionary
  from gensim.parsing.preprocessing import remove_stopword_tokens, remove_short_tokens, lower_to_unicode, strip_multiple_whitespaces
  from gensim.utils import deaccent, simple_tokenize
  from smart_open import open
label_desc: Use image node_id 14 for calling the TextDirectoryCorpus obj's underlying member method code with example usage: obj.__len__() and returns: self