Module tf.advanced.annotate
Enable manual annotation APIs.
Currently only tf.ner.ner
is supported here,
but other annotation tools might be added in the future.
Expand source code Browse git
"""
Enable manual annotation APIs.
Currently only `tf.ner.ner` is supported here,
but other annotation tools might be added in the future.
"""
import types
from ..ner.ner import NER
def makeNer(app, silent=False, **kwargs):
return NER(app, silent=silent, **kwargs)
def annotateApi(app):
"""Produce the interchange functions API.
Parameters
----------
app: obj
The high-level API object
"""
app.makeNer = types.MethodType(makeNer, app)
Functions
def annotateApi(app)
-
Produce the interchange functions API.
Parameters
app
:obj
- The high-level API object
def makeNer(app, silent=False, **kwargs)