Commit 7ae493b3 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

Minor fix setup and docs

parent 435d1076
......@@ -9,19 +9,23 @@
* Annotating text with sentiment and emotion using interoperable services
* Switching to different services (service interoperability)
* Getting results in different formats (Turtle, XML, text...)
* Asking for specific emotion models (automatic model conversion)
The tutorial is originally published as an interactive [jupyter notebook]( (`ipynb` file) that you can download and run locally.
The on-line documentation contains a **static** version of the notebook.
%% Cell type:markdown id: tags:
## Requirements
%% Cell type:markdown id: tags:
We will use the demo server at abd the requests library.
We will use the demo server at and the requests library.
We will use a variable for our endpoint so you can try these examples on other instances:
We will use a variable for our endpoint.
To try these examples on other instances simply change the value of this variable and re-run the query:
%% Cell type:code id: tags:
``` python
endpoint = ''
......@@ -293,11 +293,10 @@ texinfo_documents = [
#texinfo_no_detailmenu = False
nbsphinx_prolog = """
.. note:: This page has been auto-generated from a Jupyter notebook using nbsphinx_.
.. note:: This is an `auto-generated <>`_ static view of a Jupyter notebook.
The original source is available at:{{ env.doc2path(env.docname, base=None) }}
To run the code examples in your computer, you may download the original notebook from the repository:{{ env.doc2path(env.docname, base=None) }}
.. _nbsphinx:
......@@ -16,9 +16,10 @@ limitations under the License.
from setuptools import setup
from os import path
import io
with open('senpy/VERSION') as f:
with'senpy/VERSION') as f:
__version__ =
assert __version__
except IOError: # pragma: no cover
......@@ -28,13 +29,13 @@ except IOError: # pragma: no cover
def parse_requirements(filename):
""" load requirements from a pip requirements file """
with open(filename, 'r') as f:
with, 'r') as f:
lineiter = list(line.strip() for line in f)
return [line for line in lineiter if line and not line.startswith("#")]
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
with, 'README.rst'), encoding='utf-8') as f:
long_description =
Markdown is supported
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