Predict on data. This is the base class for all components, including rule based and statistical ones. Args: *args: Any type of data subject to sub-classes **kwargs: Additional arguments Returns: Any predicted annotations.
(self, *args, **kwargs)
| 11 | class Component(Configurable, ABC): |
| 12 | @abstractmethod |
| 13 | def predict(self, *args, **kwargs): |
| 14 | """Predict on data. This is the base class for all components, including rule based and statistical ones. |
| 15 | |
| 16 | Args: |
| 17 | *args: Any type of data subject to sub-classes |
| 18 | **kwargs: Additional arguments |
| 19 | |
| 20 | Returns: Any predicted annotations. |
| 21 | |
| 22 | """ |
| 23 | raise NotImplementedError('%s.%s()' % (self.__class__.__name__, inspect.stack()[0][3])) |
| 24 | |
| 25 | def __call__(self, *args, **kwargs): |
| 26 | """ |