(self, chunk=None, pnp=None)
| 138 | self.custom_tags = Tags(self) # User-defined tags. |
| 139 | |
| 140 | def copy(self, chunk=None, pnp=None): |
| 141 | w = Word( |
| 142 | self.sentence, |
| 143 | self.string, |
| 144 | self.lemma, |
| 145 | self.type, |
| 146 | self.index) |
| 147 | w.chunk = chunk |
| 148 | w.pnp = pnp |
| 149 | w.custom_tags = Tags(w, items=self.custom_tags) |
| 150 | return w |
| 151 | |
| 152 | def _get_tag(self): |
| 153 | return self.type |