forked from neomatrix369/awesome-ai-ml-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding two more languages to the growing list: kotlin and scala
- Loading branch information
1 parent
57c03c6
commit 8c91e79
Showing
18 changed files
with
238 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
### Common functions | ||
COPY common.sh common.sh | ||
|
||
### Lingua installation | ||
### https://github.com/pemistahl/lingua/ | ||
COPY lingua.sh lingua.sh | ||
|
||
### Kotidgy installation | ||
### https://github.com/meiblorn/kotidgy | ||
COPY kotidgy.sh kotidgy.sh | ||
|
||
RUN chown -R nlp-java:nlp-java . | ||
|
||
USER nlp-java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
gitClone() { | ||
REPO_URL=$1 | ||
REPO_FOLDER=$(echo "${REPO_URL}" | awk '{split($0,a,"/"); print a[5]}') | ||
if [ -e "${REPO_FOLDER}" ]; then | ||
echo "${REPO_FOLDER} already exists, aborting process, remove folder manually to perform a fresh download/update" | ||
else | ||
git clone --depth=1 ${REPO_URL} | ||
fi | ||
} | ||
|
||
downloadArtifact() { | ||
URL=$1 | ||
ARTIFACT=${2} | ||
ARTIFACT_FOLDER=${3} | ||
|
||
if [ -e "${ARTIFACT_FOLDER}" ]; then | ||
echo "${ARTIFACT_FOLDER} already exists, aborting process, remove folder manually to perform a fresh download/update" | ||
else | ||
if [[ -e "${ARTIFACT}" ]]; then | ||
echo "${ARTIFACT} already exists, skipping to next step..." | ||
else | ||
curl -O -L -J "${URL}" | ||
fi | ||
|
||
if [[ -z "$(echo ${ARTIFACT} | grep zip)" ]]; then | ||
if [[ -z "$(echo ${ARTIFACT} | grep 'tar.gz|tgz')" ]]; then | ||
tar -xvzf ${ARTIFACT} | ||
else | ||
echo 'File format unrecognised, aborting...' | ||
exit -1 | ||
fi | ||
else | ||
unzip -u ${ARTIFACT} | ||
fi | ||
|
||
rm -f ${ARTIFACT} | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/meiblorn/kotidgy | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/pemistahl/lingua | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
### Common functions | ||
COPY common.sh common.sh | ||
|
||
### Saul installation | ||
### https://github.com/CogComp/saul | ||
COPY saul.sh saul.sh | ||
|
||
### ATR4S installation | ||
### https://github.com/ispras/atr4s | ||
COPY atr4s.sh atr4s.sh | ||
|
||
### tm installation | ||
### https://github.com/ispras/tm | ||
COPY tm.sh tm.sh | ||
|
||
### word2vec-scala installation | ||
### https://github.com/Refefer/word2vec-scala | ||
COPY word2vec-scala.sh word2vec-scala.sh | ||
|
||
### epic installation | ||
### https://github.com/dlwh/epic | ||
COPY epic.sh epic.sh | ||
|
||
RUN chown -R nlp-java:nlp-java . | ||
|
||
USER nlp-java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/r0man/inflections-clj | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
gitClone() { | ||
REPO_URL=$1 | ||
REPO_FOLDER=$(echo "${REPO_URL}" | awk '{split($0,a,"/"); print a[5]}') | ||
if [ -e "${REPO_FOLDER}" ]; then | ||
echo "${REPO_FOLDER} already exists, aborting process, remove folder manually to perform a fresh download/update" | ||
else | ||
git clone --depth=1 ${REPO_URL} | ||
fi | ||
} | ||
|
||
downloadArtifact() { | ||
URL=$1 | ||
ARTIFACT=${2} | ||
ARTIFACT_FOLDER=${3} | ||
|
||
if [ -e "${ARTIFACT_FOLDER}" ]; then | ||
echo "${ARTIFACT_FOLDER} already exists, aborting process, remove folder manually to perform a fresh download/update" | ||
else | ||
if [[ -e "${ARTIFACT}" ]]; then | ||
echo "${ARTIFACT} already exists, skipping to next step..." | ||
else | ||
curl -O -L -J "${URL}" | ||
fi | ||
|
||
if [[ -z "$(echo ${ARTIFACT} | grep zip)" ]]; then | ||
if [[ -z "$(echo ${ARTIFACT} | grep 'tar.gz|tgz')" ]]; then | ||
tar -xvzf ${ARTIFACT} | ||
else | ||
echo 'File format unrecognised, aborting...' | ||
exit -1 | ||
fi | ||
else | ||
unzip -u ${ARTIFACT} | ||
fi | ||
|
||
rm -f ${ARTIFACT} | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/dakrone/clojure-opennlp | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/CogComp/saul | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/fekr/postagga | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source common.sh | ||
|
||
cd shared | ||
gitClone https://github.com/dakrone/clojure-opennlp | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters