1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-23 18:12:20 +00:00

Unify data folders

This commit is contained in:
J. Fernando Sánchez
2018-06-15 16:44:25 +02:00
parent b15a0d7dbe
commit f11439d944
10 changed files with 21 additions and 15 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.*
data

12
.gitmodules vendored
View File

@@ -1,9 +1,3 @@
[submodule "emotion-anew/data"]
path = emotion-anew/data
url = ../data/emotion-anew.git
[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
[submodule "data"]
path = data
url = ../data

View File

@@ -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 punkt

View File

@@ -13,7 +13,7 @@ ifdef SENPY_FOLDER
all: build run
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-.

1
data Submodule

Submodule data added at f34155c389

View File

@@ -219,7 +219,7 @@ class WNAffect(EmotionPlugin, ShelfMixin):
matches = 1
for i in feature_set:
feature_set[i] = (feature_set[i] / matches) * 100
feature_set[i] = (feature_set[i] / matches)
return feature_set

View File

@@ -22,3 +22,15 @@ spec:
ports:
- name: web
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