Go to file
2022-01-27 16:50:22 +01:00
packages/stand-off-data-py Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
wrapper Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
.gitlab-ci.yml Use JSON files for stand-off annotations. 2021-03-26 09:46:17 +01:00
Dockerfile Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
LICENSE Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
nlp Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
README.md Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
spacy-nlp Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00
vrt-creator Bump spaCy version, bugfixes, codestyle 2022-01-27 16:50:22 +01:00

NLP - Natural Language Processing

This software implements a heavily parallelized pipeline for Natural Language Processing of text files. It is used for nopaque's NLP service but you can also use it standalone, for that purpose a convenient wrapper script is provided. The pipeline is designed to run on Linux operating systems, but with some tweaks it should also run on Windows with WSL installed.

Software used in this pipeline implementation

Installation

  1. Install Docker and Python 3.
  2. Clone this repository: git clone https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
  3. Build the Docker image: docker build -t gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/nlp:v0.1.0 nlp
  4. Add the wrapper script (wrapper/nlp relative to this README file) to your ${PATH}.
  5. Create working directories for the pipeline: mkdir -p /<my_data_location>/{input,output}.

Use the Pipeline

  1. Place your plain text files inside /<my_data_location>/input. Files should all contain text of the same language.
  2. Clear your /<my_data_location>/output directory.
  3. Start the pipeline process. Check the pipeline help (nlp --help) for more details.
cd /<my_data_location>
nlp \
  --input-dir input \
  --output-dir output \
  -m <model_code> <optional_pipeline_arguments>
  1. Check your results in the /<my_data_location>/output directory.