From 256513699605e4df7b9d0113a8410107cf650f3c Mon Sep 17 00:00:00 2001 From: Jonathan Spalink Date: Mon, 1 Jul 2019 11:24:44 -0500 Subject: [PATCH] version bump --- econtextapi/nlp/parse.py | 10 +++++----- setup.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/econtextapi/nlp/parse.py b/econtextapi/nlp/parse.py index ab0c8b8..7299d40 100644 --- a/econtextapi/nlp/parse.py +++ b/econtextapi/nlp/parse.py @@ -14,18 +14,18 @@ class Parse(ApiCallable): INNER_WRAPPER = 'nlp' PATH = '/nlp/parse' - def __init__(self, client, doc_string=None, *args, **kwargs): + def __init__(self, client, text=None, *args, **kwargs): super(Parse, self).__init__() self.client = client - self.doc = doc_string + self.text = text + self.data = {'text': text} + self.doc = None def get_path(self): return "".join([self.client.baseurl, Parse.PATH]) def get_data(self): - return { - 'text': self.doc - } + return self.data def process_result(self, response_object): """ diff --git a/setup.py b/setup.py index fdb9636..b30edc8 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name = 'eContext API SDK', - version = "0.1.0", + version = "0.1.2", author = 'Jonathan Spalink', author_email = 'jspalink@info.com', description = 'The eContext API provides taxonomic classification of text content',