MCPcopy Index your code
hub / github.com/clips/pattern / copy

Method copy

pattern/text/tree.py:140–150  ·  view source on GitHub ↗
(self, chunk=None, pnp=None)

Source from the content-addressed store, hash-verified

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

Callers 6

fillFunction · 0.45
strokeFunction · 0.45
canvas.jsFile · 0.45
chunkedFunction · 0.45
copyMethod · 0.45
unionFunction · 0.45

Calls 2

TagsClass · 0.85
WordClass · 0.70

Tested by

no test coverage detected