mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-14 12:42:27 +00:00
Unify data folders
This commit is contained in:
parent
b15a0d7dbe
commit
f11439d944
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
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f34155c3891b8919a1d73bae410cb5113f1bf959
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 76b75e348a0251a66ff8f6eb44eb1d872d4990c2
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 0dc601a8713984812666ae6ef5f2d25c065dba17
|
|
@ -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
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 7f99680db607fd06dc46009a7dae13ca4fc4e6ce
|
|
Loading…
Reference in New Issue
Block a user