From 2f718bb1c2d949bc2228fdb18eda18d959f225b7 Mon Sep 17 00:00:00 2001 From: 1euro7cent Date: Sun, 19 Sep 2021 10:57:29 +0200 Subject: [PATCH 1/4] Added languagetool server --- README.md | 2 + software/language-tool/README.md | 5 +++ software/language-tool/egg-languagetool.json | 39 ++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 software/language-tool/README.md create mode 100644 software/language-tool/egg-languagetool.json diff --git a/README.md b/README.md index 93f4c9dc..762f93ce 100644 --- a/README.md +++ b/README.md @@ -250,3 +250,5 @@ If you are reading this it looks like you are looking to add an egg to your serv * [haste-server](/software/haste-server) ### RabbitMQ * [rabbitmq](/software/rabbitmq) +### Language-Tool +* [languagetool](/software/language-tool) diff --git a/software/language-tool/README.md b/software/language-tool/README.md new file mode 100644 index 00000000..c3b71ce0 --- /dev/null +++ b/software/language-tool/README.md @@ -0,0 +1,5 @@ +# Language-Tool + +LanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, [and more than 20 other languages](https://languagetool.org/languages/). It finds many errors that a simple spell checker cannot detect. + +View https://languagetool.org for more information. diff --git a/software/language-tool/egg-languagetool.json b/software/language-tool/egg-languagetool.json new file mode 100644 index 00000000..d0f85458 --- /dev/null +++ b/software/language-tool/egg-languagetool.json @@ -0,0 +1,39 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1", + "update_url": null + }, + "exported_at": "2021-09-19T10:46:15+02:00", + "name": "Languagetool", + "author": "thomasruhl@live.de", + "description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.\r\n\r\nView https://languagetool.org for more information.", + "features": null, + "images": ["ghcr.io/software-noob/pterodactyl-images:java_8"], + "file_denylist": [], + "startup": "java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port {{SERVER_PORT}} --allow-origin \\\"*\\\" --public --config config.properties", + "config": { + "files": "{\r\n \"config.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"languageModel\": \"models/\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Server started\"\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!/bin/ash\r\napk add --no-cache unzip # to make shure the unzipper is working properly\r\nmkdir -p /mnt/server\r\nmkdir -p /mnt/server/models\r\ncd /mnt/server\r\ntouch config.properties\r\nMODEL_URL=\"https://languagetool.org/download/ngram-data/\"\r\n\r\nDATAS=\"ngrams-de-20150819.zip ngrams-en-20150817.zip ngrams-es-20150915.zip ngrams-fr-20150913.zip ngrams-nl-20181229.zip\"\r\n\r\necho downloading models\r\n\r\n\r\nfor i in $TRAIN_MODELS; do\r\nfor d in $DATAS; do\r\n if [[ $d =~ $i ]]; then\r\n DOWNLOAD_LINK=\"$MODEL_URL$d\"\r\n echo \"downloading $DOWNLOAD_LINK\"\r\n echo \"this could take some while\"\r\n curl $DOWNLOAD_LINK --output models/$d\r\n cd models/\r\n echo \"unziping $d\"\r\n unzip $d\r\n rm $d\r\n cd /mnt/server\r\n fi\r\n\r\n done\r\n\r\ndone\r\ncurl https://languagetool.org/download/LanguageTool-stable.zip --output download.zip\r\necho unziping\r\nunzip download.zip\r\necho moving files\r\nmv LanguageTool-*/* .\r\n\r\nrm -rf LanguageTool-*\r\nrm download.zip -rf\r\necho Finished install", + "container": "ghcr.io/pterodactyl/installers:alpine", + "entrypoint": "ash" + } + }, + "variables": [ + { + "name": "Include traindata", + "description": "WARNING!! This take up a lot of disk space. You have being warned.\r\nNothing = none.\r\nSeparate by spaces.\r\nCurrent language codes= \"de en es fr nl\" (15.09.2021 dd/mm/yyyyy)", + "env_variable": "TRAIN_MODELS", + "default_value": "none", + "user_viewable": true, + "user_editable": true, + "rules": "string" + } + ] +} From 67bce9ce7de451e9041225d321694fdc82d6fb2c Mon Sep 17 00:00:00 2001 From: 1euro7cent Date: Mon, 20 Sep 2021 17:09:58 +0200 Subject: [PATCH 2/4] changed stuff with languagetool --- README.md | 4 +- software/language-tool/egg-languagetool.json | 39 ------------------ .../{language-tool => languagetool}/README.md | 2 +- software/languagetool/egg-languagetool.json | 41 +++++++++++++++++++ 4 files changed, 44 insertions(+), 42 deletions(-) delete mode 100644 software/language-tool/egg-languagetool.json rename software/{language-tool => languagetool}/README.md (94%) create mode 100644 software/languagetool/egg-languagetool.json diff --git a/README.md b/README.md index 762f93ce..ac6f4a97 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Grafana](/software/grafana) ### haste-server * [haste-server](/software/haste-server) +### LanguageTool +* [languagetool](/software/languagetool) ### RabbitMQ * [rabbitmq](/software/rabbitmq) -### Language-Tool -* [languagetool](/software/language-tool) diff --git a/software/language-tool/egg-languagetool.json b/software/language-tool/egg-languagetool.json deleted file mode 100644 index d0f85458..00000000 --- a/software/language-tool/egg-languagetool.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", - "meta": { - "version": "PTDL_v1", - "update_url": null - }, - "exported_at": "2021-09-19T10:46:15+02:00", - "name": "Languagetool", - "author": "thomasruhl@live.de", - "description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.\r\n\r\nView https://languagetool.org for more information.", - "features": null, - "images": ["ghcr.io/software-noob/pterodactyl-images:java_8"], - "file_denylist": [], - "startup": "java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port {{SERVER_PORT}} --allow-origin \\\"*\\\" --public --config config.properties", - "config": { - "files": "{\r\n \"config.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"languageModel\": \"models/\"\r\n }\r\n }\r\n}", - "startup": "{\r\n \"done\": \"Server started\"\r\n}", - "logs": "{}", - "stop": "^C" - }, - "scripts": { - "installation": { - "script": "#!/bin/ash\r\napk add --no-cache unzip # to make shure the unzipper is working properly\r\nmkdir -p /mnt/server\r\nmkdir -p /mnt/server/models\r\ncd /mnt/server\r\ntouch config.properties\r\nMODEL_URL=\"https://languagetool.org/download/ngram-data/\"\r\n\r\nDATAS=\"ngrams-de-20150819.zip ngrams-en-20150817.zip ngrams-es-20150915.zip ngrams-fr-20150913.zip ngrams-nl-20181229.zip\"\r\n\r\necho downloading models\r\n\r\n\r\nfor i in $TRAIN_MODELS; do\r\nfor d in $DATAS; do\r\n if [[ $d =~ $i ]]; then\r\n DOWNLOAD_LINK=\"$MODEL_URL$d\"\r\n echo \"downloading $DOWNLOAD_LINK\"\r\n echo \"this could take some while\"\r\n curl $DOWNLOAD_LINK --output models/$d\r\n cd models/\r\n echo \"unziping $d\"\r\n unzip $d\r\n rm $d\r\n cd /mnt/server\r\n fi\r\n\r\n done\r\n\r\ndone\r\ncurl https://languagetool.org/download/LanguageTool-stable.zip --output download.zip\r\necho unziping\r\nunzip download.zip\r\necho moving files\r\nmv LanguageTool-*/* .\r\n\r\nrm -rf LanguageTool-*\r\nrm download.zip -rf\r\necho Finished install", - "container": "ghcr.io/pterodactyl/installers:alpine", - "entrypoint": "ash" - } - }, - "variables": [ - { - "name": "Include traindata", - "description": "WARNING!! This take up a lot of disk space. You have being warned.\r\nNothing = none.\r\nSeparate by spaces.\r\nCurrent language codes= \"de en es fr nl\" (15.09.2021 dd/mm/yyyyy)", - "env_variable": "TRAIN_MODELS", - "default_value": "none", - "user_viewable": true, - "user_editable": true, - "rules": "string" - } - ] -} diff --git a/software/language-tool/README.md b/software/languagetool/README.md similarity index 94% rename from software/language-tool/README.md rename to software/languagetool/README.md index c3b71ce0..8f6a1145 100644 --- a/software/language-tool/README.md +++ b/software/languagetool/README.md @@ -1,4 +1,4 @@ -# Language-Tool +# LanguageTool LanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, [and more than 20 other languages](https://languagetool.org/languages/). It finds many errors that a simple spell checker cannot detect. diff --git a/software/languagetool/egg-languagetool.json b/software/languagetool/egg-languagetool.json new file mode 100644 index 00000000..2c302986 --- /dev/null +++ b/software/languagetool/egg-languagetool.json @@ -0,0 +1,41 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1", + "update_url": null + }, + "exported_at": "2021-09-20T17:08:06+02:00", + "name": "Languagetool", + "author": "thomasruhl@live.de", + "description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.\r\n\r\nView https:\/\/languagetool.org for more information.", + "features": null, + "images": [ + "ghcr.io\/pterodactyl\/yolks:java_8" + ], + "file_denylist": [], + "startup": "java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port {{SERVER_PORT}} --allow-origin \\\"*\\\" --public --config config.properties", + "config": { + "files": "{\r\n \"config.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"languageModel\": \"models\/\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Server started\"\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/ash\r\napk add --no-cache unzip # to make shure the unzipper is working properly\r\nmkdir -p \/mnt\/server\r\nmkdir -p \/mnt\/server\/models\r\ncd \/mnt\/server\r\ntouch config.properties\r\nMODEL_URL=\"https:\/\/languagetool.org\/download\/ngram-data\"\r\n\r\necho downloading models\r\n\r\ncd models\/\r\nfor i in $TRAIN_MODELS; do\r\n DOWNLOAD_LINK=\"$MODEL_URL\/ngrams-$i.zip\"\r\n echo \"downloading $DOWNLOAD_LINK\"\r\n echo \"this could take some while\"\r\n curl $DOWNLOAD_LINK --output $i.zip\r\n echo \"unziping $i.zip\"\r\n unzip $i.zip\r\n rm $i.zip\r\ndone\r\ncd \/mnt\/server\r\n\r\ncurl https:\/\/languagetool.org\/download\/LanguageTool-stable.zip --output download.zip\r\necho unziping\r\nunzip download.zip\r\necho moving files\r\n\r\ncp -r LanguageTool-*\/* .\r\n\r\nrm -rf LanguageTool-*\r\nrm download.zip -rf\r\necho Finished install", + "container": "ghcr.io\/pterodactyl\/installers:alpine", + "entrypoint": "ash" + } + }, + "variables": [ + { + "name": "Include traindata", + "description": "This takes up a lot of disk space.\r\n\r\nSeparate each value with spaces. For example, \"de-20150819 en-20150817\"\r\n\r\nView all available models at https:\/\/languagetool.org\/download\/ngram-data\/", + "env_variable": "TRAIN_MODELS", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string" + } + ] +} \ No newline at end of file From b8b0eb0c3df181a8b7acf5ad6a145477a4570f91 Mon Sep 17 00:00:00 2001 From: 1euro7cent Date: Wed, 6 Apr 2022 15:59:34 +0200 Subject: [PATCH 3/4] languagetool stuff --- software/languagetool/README.md | 6 +++++- software/languagetool/egg-languagetool.json | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/software/languagetool/README.md b/software/languagetool/README.md index 8f6a1145..7c5a6602 100644 --- a/software/languagetool/README.md +++ b/software/languagetool/README.md @@ -1,5 +1,9 @@ # LanguageTool -LanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, [and more than 20 other languages](https://languagetool.org/languages/). It finds many errors that a simple spell checker cannot detect. +LanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, [and more than 20 other languages](https://languagetool.org/languages/). It finds many errors that a simple spell checker cannot find. View https://languagetool.org for more information. + +Requires one prt for comunication. + +Try `addr:port/v2/check?language=en-US&text=this+is+a+test` to test diff --git a/software/languagetool/egg-languagetool.json b/software/languagetool/egg-languagetool.json index 2c302986..ee0ec9a9 100644 --- a/software/languagetool/egg-languagetool.json +++ b/software/languagetool/egg-languagetool.json @@ -4,10 +4,10 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-09-20T17:08:06+02:00", - "name": "Languagetool", + "exported_at": "2022-04-06T15:54:35+02:00", + "name": "LanguageTool", "author": "thomasruhl@live.de", - "description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.\r\n\r\nView https:\/\/languagetool.org for more information.", + "description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot find.\r\n\r\nView https:\/\/languagetool.org for more information.", "features": null, "images": [ "ghcr.io\/pterodactyl\/yolks:java_8" @@ -22,7 +22,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\napk add --no-cache unzip # to make shure the unzipper is working properly\r\nmkdir -p \/mnt\/server\r\nmkdir -p \/mnt\/server\/models\r\ncd \/mnt\/server\r\ntouch config.properties\r\nMODEL_URL=\"https:\/\/languagetool.org\/download\/ngram-data\"\r\n\r\necho downloading models\r\n\r\ncd models\/\r\nfor i in $TRAIN_MODELS; do\r\n DOWNLOAD_LINK=\"$MODEL_URL\/ngrams-$i.zip\"\r\n echo \"downloading $DOWNLOAD_LINK\"\r\n echo \"this could take some while\"\r\n curl $DOWNLOAD_LINK --output $i.zip\r\n echo \"unziping $i.zip\"\r\n unzip $i.zip\r\n rm $i.zip\r\ndone\r\ncd \/mnt\/server\r\n\r\ncurl https:\/\/languagetool.org\/download\/LanguageTool-stable.zip --output download.zip\r\necho unziping\r\nunzip download.zip\r\necho moving files\r\n\r\ncp -r LanguageTool-*\/* .\r\n\r\nrm -rf LanguageTool-*\r\nrm download.zip -rf\r\necho Finished install", + "script": "#!\/bin\/ash\r\napk add --no-cache unzip # to make shure the unzipper is working properly\r\nmkdir -p \/mnt\/server\r\nmkdir -p \/mnt\/server\/models\r\ntouch config.properties\r\n\r\n# if TRAIN_MODELS has content install them\r\nif [ -n TRAIN_MODELS ]; then\r\n\r\n content=$(curl -L https:\/\/languagetool.org\/download\/ngram-data\/)\r\n\r\n links=$(echo \"$content\" | grep -o '' | sed 's\/\/\/')\r\n echo $links\r\n\r\n cd \/mnt\/server\/models\r\n for model in $TRAIN_MODELS; do\r\n echo \"$model\"\r\n for link in $links; do\r\n # echo \" $link\"\r\n if [[ $link == *\"-$model-\"* ]]; then\r\n fullLink=\"https:\/\/languagetool.org\/download\/ngram-data\/$link\"\r\n echo \"Downloading $fullLink\"\r\n echo \"this could take some while\"\r\n curl $fullLink --output $model.zip\r\n echo \"unziping $model.zip\"\r\n unzip $model.zip\r\n rm $model.zip\r\n fi\r\n done\r\n done\r\nfi\r\n\r\n# main languagetool install\r\ncd \/mnt\/server\r\n\r\necho \"downloading languagetool\"\r\ncurl https:\/\/languagetool.org\/download\/LanguageTool-stable.zip --output download.zip\r\necho unziping\r\nunzip download.zip\r\necho moving files\r\n\r\ncp -r LanguageTool-*\/* .\r\n\r\nrm -rf LanguageTool-*\r\nrm download.zip -rf\r\n\r\necho Finished install", "container": "ghcr.io\/pterodactyl\/installers:alpine", "entrypoint": "ash" } @@ -30,7 +30,7 @@ "variables": [ { "name": "Include traindata", - "description": "This takes up a lot of disk space.\r\n\r\nSeparate each value with spaces. For example, \"de-20150819 en-20150817\"\r\n\r\nView all available models at https:\/\/languagetool.org\/download\/ngram-data\/", + "description": "This takes up a lot of disk space. I'm talking about multiple gigabytes. \r\n\r\nSeparate each value with spaces. For example, \"de en\". \r\n\r\nView all available models at https:\/\/languagetool.org\/download\/ngram-data\/", "env_variable": "TRAIN_MODELS", "default_value": "", "user_viewable": true, From 53818f35a041bfa72668917096b2efc434cd36c5 Mon Sep 17 00:00:00 2001 From: 1euro7cent Date: Wed, 6 Apr 2022 17:27:48 +0200 Subject: [PATCH 4/4] updated requested change --- software/languagetool/egg-languagetool.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/languagetool/egg-languagetool.json b/software/languagetool/egg-languagetool.json index ee0ec9a9..026432e4 100644 --- a/software/languagetool/egg-languagetool.json +++ b/software/languagetool/egg-languagetool.json @@ -4,7 +4,7 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2022-04-06T15:54:35+02:00", + "exported_at": "2022-04-06T17:26:12+02:00", "name": "LanguageTool", "author": "thomasruhl@live.de", "description": "This egg installs a LanguageTool server\r\n\r\nLanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot find.\r\n\r\nView https:\/\/languagetool.org for more information.", @@ -30,7 +30,7 @@ "variables": [ { "name": "Include traindata", - "description": "This takes up a lot of disk space. I'm talking about multiple gigabytes. \r\n\r\nSeparate each value with spaces. For example, \"de en\". \r\n\r\nView all available models at https:\/\/languagetool.org\/download\/ngram-data\/", + "description": "This uses many gigabytes of disk space. \r\n\r\nSeparate each value with spaces. For example, \"de en\". \r\n\r\nView all available models at https:\/\/languagetool.org\/download\/ngram-data\/", "env_variable": "TRAIN_MODELS", "default_value": "", "user_viewable": true,