component

component

class hanlp.common.component.Component[source]
abstract predict(*args, **kwargs)[source]

Predict on data. This is the base class for all components, including rule based and statistical ones.

Parameters
  • *args – Any type of data subject to sub-classes

  • **kwargs – Additional arguments

Returns: Any predicted annotations.