mirror of
https://github.com/gsi-upm/senpy
synced 2025-08-24 02:22:20 +00:00
Unify data folders
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.*
|
||||||
|
data
|
12
.gitmodules
vendored
12
.gitmodules
vendored
@@ -1,9 +1,3 @@
|
|||||||
[submodule "emotion-anew/data"]
|
[submodule "data"]
|
||||||
path = emotion-anew/data
|
path = data
|
||||||
url = ../data/emotion-anew.git
|
url = ../data
|
||||||
[submodule "emotion-wnaffect/data"]
|
|
||||||
path = emotion-wnaffect/data
|
|
||||||
url = ../data/emotion-wnaffect.git
|
|
||||||
[submodule "sentiment-basic/data"]
|
|
||||||
path = sentiment-basic/data
|
|
||||||
url = ../data/sentiment-basic.git
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
from gsiupm/senpy:0.10.5-python2.7
|
from gsiupm/senpy:0.10.6-python2.7
|
||||||
|
|
||||||
RUN python -m nltk.downloader stopwords
|
RUN python -m nltk.downloader stopwords
|
||||||
RUN python -m nltk.downloader punkt
|
RUN python -m nltk.downloader punkt
|
||||||
|
2
Makefile
2
Makefile
@@ -13,7 +13,7 @@ ifdef SENPY_FOLDER
|
|||||||
all: build run
|
all: build run
|
||||||
|
|
||||||
test-%:
|
test-%:
|
||||||
docker run $(DOCKER_FLAGS) -v $$PWD/$*:/senpy-plugins/ --rm $(IMAGEWTAG) --only-test $(TEST_FLAGS)
|
docker run $(DOCKER_FLAGS) -v $$PWD/$*:/senpy-plugins/ -v $$PWD/data:/data/ --rm $(IMAGEWTAG) --only-test $(TEST_FLAGS)
|
||||||
|
|
||||||
test: test-.
|
test: test-.
|
||||||
|
|
||||||
|
1
data
Submodule
1
data
Submodule
Submodule data added at f34155c389
Submodule emotion-anew/data deleted from 76b75e348a
Submodule emotion-wnaffect/data deleted from 0dc601a871
@@ -219,7 +219,7 @@ class WNAffect(EmotionPlugin, ShelfMixin):
|
|||||||
matches = 1
|
matches = 1
|
||||||
|
|
||||||
for i in feature_set:
|
for i in feature_set:
|
||||||
feature_set[i] = (feature_set[i] / matches) * 100
|
feature_set[i] = (feature_set[i] / matches)
|
||||||
|
|
||||||
return feature_set
|
return feature_set
|
||||||
|
|
||||||
|
@@ -22,3 +22,15 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
containerPort: 5000
|
containerPort: 5000
|
||||||
|
volumeMounts:
|
||||||
|
# name must match the volume name below
|
||||||
|
- name: senpy-data
|
||||||
|
mountPath: "/data"
|
||||||
|
subPath: data
|
||||||
|
env:
|
||||||
|
- name: SENPY_DATA
|
||||||
|
value: '/data'
|
||||||
|
volumes:
|
||||||
|
- name: senpy-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: senpy-pvc
|
||||||
|
Submodule sentiment-basic/data deleted from 7f99680db6
Reference in New Issue
Block a user