class_docstr: A class to process a collection of words from either a corpus or a list of related words.
  This class provides various filtering methods to narrow down the collection based on specific criteria.
  
  Args:
      words (Corpus | RelatedWords): The corpus or list of related words to be processed.
docstr: Filters words in the collection by their frequency within the specified thresholds.
  
  Args:
      thresholds (Thresholds): A tuple of lower and upper bounds for the word frequency filter.
      filter_corpus (Corpus): The corpus to use as the basis for frequency calculation.
                              Default: Brown corpus from NLTK.
docstr_tok: ["Filters","words","in","the","collection","by","their","frequency","within","the","specified","thresholds",".","Args",":","thresholds","(","Thresholds",")",":","A","tuple","of","lower","and","upper","bounds","for","the","word","frequency","filter",".","filter_corpus","(","Corpus",")",":","The","corpus","to","use","as","the","basis","for","frequency","calculation",".","Default",":","Brown","corpus","from","NLTK","."]
code: def frequency_filter(
      self,
      thresholds: Thresholds = Thresholds(0, float("inf")),
      filter_corpus: Corpus = None,
  ) -> None:
      """
      Filters words in the collection by their frequency within the specified thresholds.
  
      Args:
          thresholds (Thresholds): A tuple of lower and upper bounds for the word frequency filter.
          filter_corpus (Corpus): The corpus to use as the basis for frequency calculation.
                                  Default: Brown corpus from NLTK.
      """
      if filter_corpus is None:
          filter_corpus = NltkCorpus("brown")
      frequency_dist = filter_corpus.get_frequency_distribution()
      lower_bound, upper_bound = thresholds
      self.words.words = [
          word
          for word in self.words
          if lower_bound <= frequency_dist[word] <= upper_bound
      ]
  
file_path: evals/evals/registry/data/word_association/corpus_tools/processor.py
imports: from collections import namedtuple
  from typing import Iterator, List, Union
  from corpus import Corpus, NltkCorpus
  from related_words import RelatedWords
label_desc: Use image node_id 3 for calling the WordCollectionProcessor obj's underlying member method code with example usage: obj.frequency_filter(thresholds, filter_corpus) without return types