Commit 8bbd2f7b authored by militarpancho's avatar militarpancho
Browse files

First commit

parents
[submodule "data"]
path = data
url = ../data/plugin-prueba
Subproject commit 9dcdfdd7bd1758f8a0e32dfbb3510fa6f4e5d2b4
#!/bin/env python
#helloworld.py
from senpy.plugins import AnalysisPlugin
from senpy.models import Sentiment
import os
class HelloWorld(AnalysisPlugin):
def analyse_entry(self, entry, params):
'''Basically do nothing with each entry'''
path = os.path.dirname(os.path.abspath(__file__))
sentiment = Sentiment()
with open(os.path.join(path, self.data)) as f:
entry.text = f.read()
yield entry
---
name: "plugin-prueba"
module: prueba
description: A simple plugin
version: "0.1"
data: "data/datos.txt"
extra_params: {}
requirements: []
async: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment