class_docstr: Coref Part Sample: corresponed to a part of a Coref Sample
class_docstr_tok: ["Coref","Part","Sample",":","corresponed","to","a","part","of","a","Coref","Sample"]
docstr: conll parts may contain clusters that has only
  0 or 1 span, which is not a valid one.
  
  This function remove these invalid clusters from self.clusters.
  
  :return ~textflint.input.component.sample.CorefSample:
      a CorefSample that passes check_data
docstr_tok: ["conll","parts","may","contain","clusters","that","has","only","0","or","1","span",",","which","is","not","a","valid","one",".","This","function","remove","these","invalid","clusters","from","self.clusters",".",":","return","~textflint.input.component.sample.CorefSample",":","a","CorefSample","that","passes","check_data"]
code: def remove_invalid_corefs_from_part(self):
      r"""
      conll parts may contain clusters that has only
      0 or 1 span, which is not a valid one.
  
      This function remove these invalid clusters from self.clusters.
  
      :return ~textflint.input.component.sample.CorefSample:
          a CorefSample that passes check_data
  
      """
      conll = self.dump()
      conll["clusters"] = [
          cluster for cluster in conll["clusters"] if len(cluster) > 1
      ]
      return CorefSample(conll, origin=self)
  
imports: from ....common.settings import ORIGIN, TASK_MASK
  from ....common.utils.fp_utils import *
  from ....common.utils.shift_utils import *
  from .sample import Sample
  from ..field import ListField, TextField
label_desc: Use image node_id 4 for calling the CorefPartSample obj's underlying member method code with example usage: obj.remove_invalid_corefs_from_part() and returns: CorefSample