def slice(self, start, stop):
s = Slice(token=self.token, language=self.language)<EOL>for i, word in enumerate(self.words[start:stop]):<EOL><INDENT>p0 = word.string                                                       <EOL>p1 = word.lemma                                                        <EOL>p2 = word.type                                                         <EOL>p3 = word.chunk is not None and word.chunk.type or None                <EOL>p4 = word.pnp is not None and "<STR_LIT>" or None                            <EOL>p5 = word.chunk is not None and unzip(<NUM_LIT:0>, word.chunk.relations) or None <EOL>p6 = word.chunk is not None and unzip(<NUM_LIT:1>, word.chunk.relations) or None <EOL>p7 = word.chunk and word.chunk.anchor_id or None                       <EOL>p8 = word.chunk and word.chunk.start == start+i and BEGIN or None      <EOL>p9 = word.custom_tags                                                  <EOL>if word.chunk is not None and (word.chunk.stop > stop):<EOL><INDENT>p3, p4, p5, p6, p7, p8 = None, None, None, None, None, None<EOL><DEDENT>if word.pnp is not None and word.pnp.start == start+i:<EOL><INDENT>p4 = BEGIN+"<STR_LIT:->"+"<STR_LIT>"<EOL><DEDENT>if word.pnp is not None and (word.pnp.start < start or word.chunk.stop > stop):<EOL><INDENT>p4, p7 = None, None<EOL><DEDENT>s.append(word=p0, lemma=p1, type=p2, chunk=p3, pnp=p4, relation=p5, role=p6, anchor=p7, iob=p8, custom=p9)<EOL><DEDENT>s.parent = self<EOL>s._start = start<EOL>return s<EOL>
Returns a portion of the sentence from word start index to word stop index.
            The returned slice is a subclass of Sentence and a deep copy.