Skip to content

Commit

Permalink
Merge pull request #123 from Inist-CNRS/services/terms-extraction/fix…
Browse files Browse the repository at this point in the history
…-numpy-config

[terms-extraction] freeze numpy version and fix missing config
  • Loading branch information
parmentf authored Jul 15, 2024
2 parents 23efe71 + 95a8b36 commit d4da8eb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
4 changes: 3 additions & 1 deletion services/terms-extraction/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ USER root
RUN pip install \
quantulum3==0.9.0 \
scikit-learn==1.2.2 \
stemming==1.0.1
stemming==1.0.1 \
numpy==1.26.3

# Install all node dependencies
RUN npm install \
Expand All @@ -16,3 +17,4 @@ RUN npm install \
WORKDIR /app/public
# Declare files to copy in .dockerignore
COPY --chown=daemon:daemon . /app/public/
RUN mv ./config.json /app && chmod a+w /app/config.json
2 changes: 1 addition & 1 deletion services/terms-extraction/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ws-terms-extraction@1.6.1
# ws-terms-extraction@1.6.2

Extraction de termes

Expand Down
14 changes: 14 additions & 0 deletions services/terms-extraction/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"environnement": {
"EZS_TITLE": "Extraction de termes",
"EZS_DESCRIPTION": "Extraction de termes à partir de textes en anglais ou en français.",
"EZS_METRICS": true,
"EZS_CONCURRENCY": 4,
"EZS_CONTINUE_DELAY": 60,
"EZS_NSHARDS": 32,
"EZS_CACHE": true,
"EZS_VERBOSE": false,
"NODE_OPTIONS": "--max_old_space_size=1024",
"NODE_ENV": "production"
}
}
2 changes: 1 addition & 1 deletion services/terms-extraction/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "ws-terms-extraction",
"version": "1.6.1",
"version": "1.6.2",
"description": "Extraction de termes",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions services/terms-extraction/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "terms-extraction - Extraction de termes",
"summary": "Extraction de termes à partir de textes en anglais ou en français.",
"version": "1.6.1",
"version": "1.6.2",
"termsOfService": "https://services.istex.fr/",
"contact": {
"name": "Inist-CNRS",
Expand All @@ -15,7 +15,7 @@
"x-comment": "Will be automatically completed by the ezs server."
},
{
"url": "http://vptdmservices.intra.inist.fr:49253/",
"url": "http://vptdmservices.intra.inist.fr:49297/",
"description": "Latest version for production",
"x-profil": "Standard"
}
Expand All @@ -30,4 +30,4 @@
}
}
]
}
}

0 comments on commit d4da8eb

Please sign in to comment.