original_docstring: Return spaCy Doc representation of Example
  
          Returns:
              Doc: Output spaCy Doc with ents set from example spans
          
docstring: Return spaCy Doc representation of Example
docstring_tokens: Return spaCy Doc representation of Example
code: def doc(self) -> Doc:
          """Return spaCy Doc representation of Example
  
          Returns:
              Doc: Output spaCy Doc with ents set from example spans
          """
          if not self.tokens:
              raise ValueError("Tokens are not set. Try running the recon.v1.add_tokens operation.")
          tokens = [token.text for token in self.tokens]
          words, spaces = get_words_and_spaces(tokens, self.text)
          doc = Doc(Vocab(), words=words, spaces=spaces)
          doc.ents = [doc.char_span(s.start, s.end, label=s.label) for s in self.spans]
          return doc
code_tokens: def doc ( self ) -> Doc : if not self . tokens : raise ValueError ( "Tokens are not set. Try running the recon.v1.add_tokens operation." ) tokens = [ token . text for token in self . tokens ] words , spaces = get_words_and_spaces ( tokens , self . text ) doc = Doc ( Vocab ( ) , words = words , spaces = spaces ) doc . ents = [ doc . char_span ( s . start , s . end , label = s . label ) for s in self . spans ] return doc
short_docstring: Return spaCy Doc representation of Example
short_docstring_tokens: Return spaCy Doc representation of Example
comment: """Return spaCy Doc representation of Example
  
          Returns:
              Doc: Output spaCy Doc with ents set from example spans
          """