Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
145
Issues
145
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
c5c0184d
Commit
c5c0184d
authored
Mar 26, 2025
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/issue-436-dockerfile-and-corenlp' into dev-merge
parents
eca8f40d
12951945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
corenlp.nix
nix/corenlp.nix
+11
-3
No files found.
nix/corenlp.nix
View file @
c5c0184d
...
...
@@ -6,8 +6,8 @@
writeShellScript
,
jre
,
version
?
"4.5.
8
"
,
hash
?
"sha256-
HZHNyw+LrxAN4OLueAhyxRG2onPWNMm5MwJDLLzsE2M="
version
?
"4.5.
9
"
,
hash
?
"sha256-
DOGBkGJfvR1PoXz2CNoo58HXwGLxvPKMChRqlrFtQLQ="
,
}:
stdenv
.
mkDerivation
(
finalAttrs
:
...
...
@@ -29,6 +29,12 @@ stdenv.mkDerivation (finalAttrs:
${
jre
}
/bin/java -mx4g -cp "$CORENLP_PATH/*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port $PORT -timeout 15000 "$@"
''
;
# see https://huggingface.co/stanfordnlp/CoreNLP/commits/main
versionCommits
=
{
"4.5.8"
=
"34264e88b7add9e0045f4727bc7d1872385f06aa"
;
"4.5.9"
=
"06f79ee8b1ec475d7630b1871bfd75a57c77ffa4"
;
};
commit
=
versionCommits
.
"
${
finalAttrs
.
version
}
"
;
in
{
...
...
@@ -36,7 +42,9 @@ stdenv.mkDerivation (finalAttrs:
inherit
version
;
src
=
fetchzip
{
inherit
hash
;
url
=
"http://nlp.stanford.edu/software/stanford-corenlp-
${
finalAttrs
.
version
}
.zip"
;
# url = "http://nlp.stanford.edu/software/stanford-corenlp-${finalAttrs.version}.zip";
# huggin face is more stable
url
=
"https://huggingface.co/stanfordnlp/CoreNLP/resolve/
${
commit
}
/stanford-corenlp-latest.zip"
;
};
buildInputs
=
[
jre
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment