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
150
Issues
150
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
62eef84e
Verified
Commit
62eef84e
authored
Mar 06, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[nix] remove devops/corenlp dir, update README, add 'nil' to nix pkgs
parent
e1be02d6
Pipeline
#7415
passed with stages
in 44 minutes and 10 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
64 deletions
+32
-64
README.md
README.md
+11
-0
.gitignore
devops/coreNLP/.gitignore
+0
-1
Dockerfile
devops/coreNLP/Dockerfile
+0
-7
build.sh
devops/coreNLP/build.sh
+0
-21
startServer.sh
devops/coreNLP/startServer.sh
+0
-3
docker-compose.yaml
devops/docker/docker-compose.yaml
+5
-5
install-corenlp
devops/install-corenlp
+0
-12
pkgs.nix
nix/pkgs.nix
+16
-15
No files found.
README.md
View file @
62eef84e
...
...
@@ -103,6 +103,17 @@ Then initialize the database using the dedicated command: from inside the
And provide a name and a password for the master user as requested.
### Launching CoreNLP
CoreNLP can be started with nix:
```
shell
nix-shell
--run
startCoreNLPServer.sh
```
By default, this starts on port
`9000`
. If you want a different port, then do:
```
shell
nix-shell
--run
'startCoreNLPServer.sh -p 9001'
```
### Running Gargantext
From inside the
`haskell-gargantext/`
directory, run
...
...
devops/coreNLP/.gitignore
deleted
100644 → 0
View file @
e1be02d6
stanford-corenlp-*
devops/coreNLP/Dockerfile
deleted
100644 → 0
View file @
e1be02d6
FROM
openjdk
#ADD home/debian/CoreNLP /CoreNLP
ADD
stanford-corenlp-current /CoreNLP
WORKDIR
/CoreNLP
CMD
./startServer.sh
devops/coreNLP/build.sh
deleted
100755 → 0
View file @
e1be02d6
#!/bin/bash
# releases are here:
# https://stanfordnlp.github.io/CoreNLP/history.html
VERSION
=
4.5.8
FILE
=
"stanford-corenlp-
${
VERSION
}
.zip"
DIR_V
=
"stanford-corenlp-
${
VERSION
}
"
DIR
=
"stanford-corenlp-current"
URL
=
"http://nlp.stanford.edu/software/
${
FILE
}
"
# https://www.digitalocean.com/community/tutorials/workflow-downloading-files-curl
[
!
-f
${
FILE
}
]
&&
echo
'Fetching file'
&&
curl
-L
-o
${
FILE
}
${
URL
}
[
!
-d
${
DIR_V
}
]
&&
echo
'Unzipping file'
&&
unzip ./
${
FILE
}
[
!
-L
${
DIR
}
]
&&
echo
"Symlinking
${
DIR_V
}
->
${
DIR
}
"
&&
ln
-s
${
DIR_V
}
${
DIR
}
[
!
-f
${
DIR
}
/startServer.sh
]
&&
echo
"Copying startServer.sh"
&&
cp
./startServer.sh
${
DIR
}
/
echo
"You can now build with: docker build -t cgenie/corenlp-garg:
${
VERSION
}
"
--pull
.
devops/coreNLP/startServer.sh
deleted
100755 → 0
View file @
e1be02d6
#!/bin/sh
java
-mx4g
-cp
"*"
edu.stanford.nlp.pipeline.StanfordCoreNLPServer
-port
9000
-timeout
15000
devops/docker/docker-compose.yaml
View file @
62eef84e
...
...
@@ -61,11 +61,11 @@ services:
# volumes:
# - pgadmin:/var/lib/pgadmin
corenlp
:
#image: 'cgenie/corenlp-garg:latest'
image
:
'
cgenie/corenlp-garg:4.5.4'
ports
:
-
9000:9000
#
corenlp:
#
#image: 'cgenie/corenlp-garg:latest'
#
image: 'cgenie/corenlp-garg:4.5.4'
#
ports:
#
- 9000:9000
# johnsnownlp:
# image: 'johnsnowlabs/nlp-server:latest'
...
...
devops/install-corenlp
deleted
100644 → 0
View file @
e1be02d6
#!/bin/bash
if
[
!
-d
coreNLP
]
;
then
mkdir
-v
coreNLP
fi
pushd
coreNLP
wget https://dl.gargantext.org/coreNLP.tar.bz2
tar
xvjf coreNLP.tar.bz2
pushd
home/debian/CoreNLP
./startServer.sh
nix/pkgs.nix
View file @
62eef84e
...
...
@@ -100,39 +100,40 @@ rec {
pkgs
.
haskellPackages
.
pretty-show
];
nonhsBuildInputs
=
with
pkgs
;
[
#haskell-language-server
blas
bzip2
corenlp
curl
czmq
docker-compose
expat
gcc13
gfortran
git
gmp
graphviz
gsl
#haskell-language-server
hlint
icu
icu
igraph_0_10_4
igraph_0_10_4
jre
lapack
libffi
lapack
xz
libffi
libpqxx
libsodium
nanomsg
nil
# nix language server
pcre
pkg-config
postgresql
xz
zlib
blas
gfortran
expat
icu
graphviz
gcc13
igraph_0_10_4
libpqxx
libsodium
nanomsg
xz
zeromq
curl
zlib
]
++
(
lib
.
optionals
stdenv
.
isDarwin
[
darwin
.
apple_sdk
.
frameworks
.
Accelerate
]);
...
...
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