MCPcopy Create free account
hub / github.com/clips/pattern / _do_custom

Method _do_custom

pattern/text/tree.py:841–845  ·  view source on GitHub ↗

Adds the user-defined tags to the last word. Custom tags can be used to add extra semantical meaning or metadata to words.

(self, custom)

Source from the content-addressed store, hash-verified

839 pnp.anchor.attachments.append(pnp)
840
841 def _do_custom(self, custom):
842 """ Adds the user-defined tags to the last word.
843 Custom tags can be used to add extra semantical meaning or metadata to words.
844 """
845 self.words[-1].custom_tags = Tags(self.words[-1], custom)
846
847 def _do_conjunction(self):
848 """ Attach conjunctions.

Callers 1

appendMethod · 0.95

Calls 1

TagsClass · 0.85

Tested by

no test coverage detected