class_docstr: POS Sample class to hold the necessary info and provide atomic operations.
docstr: Validate whether the sample is legal
docstr_tok: ["Validate","whether","the","sample","is","legal"]
code: def is_legal(self):
      r"""
      Validate whether the sample is legal
  
      """
      if (
          len(self.x.words) != len(self.y.field_value)
          or len(self.x.words) == 0
      ):
          return False
      return True
  
file_path: textflint/textflint/input/component/sample/pos_sample.py
imports: from .sample import Sample
  from ..field import ListField, TextField
label_desc: Use image node_id 5 for calling the POSSample obj's underlying member method code with example usage: obj.is_legal() and returns: True, False