Commit 5213c894 authored by Marko Kollo's avatar Marko Kollo
Browse files

Removed stats option from MLP Lite.

parent 31be9296
......@@ -3,12 +3,12 @@ import json
from utils.mlp_task_adapter import MLPTaskAdapter
from utils.mlp_task_adapter import Helpers
class MLPLitePreprocessor(object):
"""
Cleans texts for classification. Lemmatizes text.
"""
def _reload_env(self):
import dotenv
dotenv.load_dotenv(".env")
......
......@@ -67,7 +67,7 @@ try:
'arguments': {
'mlp_url': MLP_URL,
},
'output_type': ['lemmas', 'full'],
'output_type': ['lemmas'],
'field_properties': mlp_field_properties,
'is_enabled': True
}
......
......@@ -95,6 +95,7 @@ class MLPTaskAdapter(object):
self.tasks.append(task_info)
except Exception as e:
logging.getLogger(ERROR_LOGGER).exception(mlp_input)
logging.getLogger(ERROR_LOGGER).exception("Response Status: {} and Response Content: {}".format(response.status_code, response.text))
......@@ -109,6 +110,7 @@ class MLPTaskAdapter(object):
result = response.json()
return result
except Exception as e:
logging.getLogger(ERROR_LOGGER).exception(task_id)
logging.getLogger(ERROR_LOGGER).exception("Response Status: {} and Response Content: {}".format(response.status_code, response.text))
......
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