code: def from_textfile(cls, textfile, workers=1, job_size=1000):
      
  
      c = Counter()
      if isinstance(textfile, string_types):
        textfile = TextFile(textfile)
      for result in textfile.apply(count, workers, job_size):
        c.update(result)
      return CountedVocabulary(word_count=c)
docs: Count the set of words appeared in a text file.
  
      Args:
        textfile (string): The name of the text file or `TextFile` object.
        min_count (integer): Minimum number of times a word/token appeared in the document
                   to be considered part of the vocabulary.
        workers (integer): Number of parallel workers to read the file simulatenously.
        job_size (integer): Size of the batch send to each worker.
        most_frequent (integer): if no min_count is specified, consider the most frequent k words for the vocabulary.
  
      Returns:
        A vocabulary of the most frequent words appeared in the document.