class_docstr: Abstract base class for population-based search methods.
  
  Examples include: genetic algorithm, particle swarm optimization
class_docstr_tok: ["Abstract","base","class","for","population-based","search","methods",".","Examples","include",":","genetic","algorithm",",","particle","swarm","optimization"]
docstr: Check if `transformted_text` still passes the constraints with
  respect to `current_text` and `original_text`.
  
  This method is required because of a lot population-based methods does their own transformations apart from
  the actual `transformation`. Examples include `crossover` from `GeneticAlgorithm` and `move` from `ParticleSwarmOptimization`.
  Args:
      transformed_text (AttackedText): Resulting text after transformation
      current_text (AttackedText): Recent text from which `transformed_text` was produced from.
      original_text (AttackedText): Original text
  Returns
      `True` if constraints satisfied and `False` if otherwise.
docstr_tok: ["Check","if","`","transformted_text","`","still","passes","the","constraints","with","respect","to","`","current_text","`","and","`","original_text","`",".","This","method","is","required","because","of","a","lot","population-based","methods","does","their","own","transformations","apart","from","the","actual","`","transformation","`",".","Examples","include","`","crossover","`","from","`","GeneticAlgorithm","`","and","`","move","`","from","`","ParticleSwarmOptimization","`",".","Args",":","transformed_text","(","AttackedText",")",":","Resulting","text","after","transformation","current_text","(","AttackedText",")",":","Recent","text","from","which","`","transformed_text","`","was","produced","from",".","original_text","(","AttackedText",")",":","Original","text","Returns","`","True","`","if","constraints","satisfied","and","`","False","`","if","otherwise","."]
code: def _check_constraints(
      self, transformed_text, current_text, original_text
  ):
      """Check if `transformted_text` still passes the constraints with
      respect to `current_text` and `original_text`.
  
      This method is required because of a lot population-based methods does their own transformations apart from
      the actual `transformation`. Examples include `crossover` from `GeneticAlgorithm` and `move` from `ParticleSwarmOptimization`.
      Args:
          transformed_text (AttackedText): Resulting text after transformation
          current_text (AttackedText): Recent text from which `transformed_text` was produced from.
          original_text (AttackedText): Original text
      Returns
          `True` if constraints satisfied and `False` if otherwise.
      """
      filtered = self.filter_transformations(
          [transformed_text], current_text, original_text=original_text
      )
      return True if filtered else False
  
file_path: TextAttack/textattack/search_methods/population_based_search.py
imports: from abc import ABC, abstractmethod
  from textattack.search_methods import SearchMethod
label_desc: Use image node_id 1 for calling the PopulationBasedSearch obj's underlying member method code with example usage: obj._check_constraints(transformed_text, current_text, original_text) and returns: unknown