Drivers¶
-
class
Driver
(*, lazy=False, ...) The prototype of CkipNLP Drivers.
- Parameters
lazy (bool) – Lazy initialize the driver. (Call
init()
at the first call of__call__()
instead.)
-
driver_type
: str¶ The type of this driver.
-
driver_family
: str¶ The family of this driver.
-
driver_inputs
: Tuple[str, …]¶ The inputs of this driver.
-
init
()¶ Initialize the driver (by calling the
_init()
function).
-
__call__
(*, ...)¶ Call the driver (by calling the
_call()
function).
Here are the list of the drivers:
Driver Type \ Family |
|
|
|
---|---|---|---|
Sentence Segmenter |
|||
Word Segmenter |
|||
Pos Tagger |
|||
Ner Chunker |
|||
Constituncy Parser |
|||
Coref Chunker |
† Not compatible with CkipCorefPipeline
.