Tags

We have a special type of feature, which is stored just like any other feature, but allows for tagging content in the content and then storing the feature tag within the content_markup to ensure that you can access parts of the content in a content node.

Tagging allows you to quickly identify nodes in a document. You can later references the nodes by those tags in order to find them for additional processing or data extraction.

document.get_root().tag('hello')
# or you get get the features back with
document.get_root().get_tags()
>>> ['hello']
document.get_root().has_tag('hello')
>>> True