Commit a1c63c74 authored by Mathieu Rodic's avatar Mathieu Rodic

[BUGFIXES] Corrected some minor bugs.

parent bc2b0fd4
......@@ -8,9 +8,12 @@ class TurboTagger:
self._nlpclient = NLPClient()
def stop(self):
del self._nlpclient
if hasattr(self, '_nlpclient'):
del self._nlpclient
def tag_text(self, text):
if not hasattr(self, '_nlpclient'):
self._nlpclient = NLPClient()
tokens_tags = []
for sentence in self._nlpclient.tag(text):
for token, tag in sentence:
......
......@@ -6,7 +6,6 @@ DAEMON_DIR=$( cd "$(dirname "$BASH_SOURCE[0]")" && pwd)
DAEMON_SCRIPT=$DAEMON_DIR/server.py
DAEMON_NAME=nlpserver
DAEMON_ARGS=
echo $DAEMON_SCRIPT
# DAEMON_USER=root
# The process ID of the script when it runs is stored here:
......
......@@ -296,8 +296,8 @@ gargantext.controller("DatasetController", function($scope, $http) {
return defaults.concat(transform);
}
return $http.get(url, {
cache: true,
transformResponse: appendTransform($http.defaults.transformResponse, function(value) {
console.log(value.data)
return value.data;
})
});
......
This diff is collapsed.
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