mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-24 17:12:29 +00:00
#34. Fixed some errors from plugins examples
This commit is contained in:
parent
69ac95bb08
commit
5bab9a6a02
@ -98,7 +98,7 @@ The value may be any valid JSON-LD dictionary.
|
|||||||
For simplicity, senpy includes a series of models by default in the ``senpy.models`` module.
|
For simplicity, senpy includes a series of models by default in the ``senpy.models`` module.
|
||||||
|
|
||||||
|
|
||||||
Example pluginhttps://lab.cluster.gsi.dit.upm.es/senpy/plugin-prueba
|
Example plugin
|
||||||
==============
|
==============
|
||||||
|
|
||||||
In this section, we will implement a basic sentiment analysis plugin.
|
In this section, we will implement a basic sentiment analysis plugin.
|
||||||
@ -166,7 +166,7 @@ Training a classifier can be time time consuming. To avoid running the training
|
|||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
from senpy.plugins import ShelfMixin, SenpyPlugin
|
from senpy.plugins import ShelfMixin, AnalysisPlugin
|
||||||
|
|
||||||
class MyPlugin(ShelfMixin, AnalysisPlugin):
|
class MyPlugin(ShelfMixin, AnalysisPlugin):
|
||||||
def train(self):
|
def train(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user