Practical overview
When it fits
Use MITIE when an application needs entity or binary-relation extraction from text, or when a domain-specific corpus calls for custom extractors.
Who it is for
- Developers integrating information extraction into text-processing applications.
- Teams training extractors or relation detectors for specialized corpora.
- Researchers and developers working with named entities or binary relations in text.
Documented uses
- Identify named entities in text using a pre-trained model.
- Detect binary relations in text.
- Train custom named-entity extractors and relation detectors.
- Build a streaming command-line tool to annotate text line by line.
Requirements & limits
The repository is public and describes MITIE as open source under the Boost Software License 1.0; its README says the license permits commercial use subject to its terms.
- MITIE is built on dlib, and its core is written in C++.
- The primary API is C; repository examples and bindings cover C, C++, Java, R and Python 2.7.
- Pre-trained models provide varying levels of support for English, Spanish and German; Spanish and German models are separate downloads.
- The provided examples require trained model files.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Build the streaming named-entity tool
Compile MITIE's command-line tool for processing text files line by line.
Before you start
- A local MITIE repository.
- CMake and a C++ build environment, or make.
Steps
Download the trained model files with the command below, or download and extract the model archive into the MITIE folder.
make MITIE-modelsBuild
ner_streamwithmakein the top-level folder or intools/ner_stream, or use CMake from that tool's folder.Pass text to the executable with the English NER model, following the README's
cat sample_text.txt | ./ner_stream MITIE-models/english/ner_model.datexample.
Expected outcome
The tool processes each input line independently and outputs marked-up text.
Guide limitations
- The recipe uses the English named-entity model shown in the README; Spanish and German models have separate downloads.
Build a MITIE shared library with CMake
Compile and install the shared library for use by an application.
Before you start
- A local MITIE repository.
- CMake and a C++ build environment.
Steps
Change to the
mitielibdirectory.Create and enter a
builddirectory.Run
cmake ...Run
cmake --build . --config Release --target install.
Expected outcome
The README says this creates a MITIE shared library in the `mitielib` folder.
Guide limitations
- The README's CMake instructions note that locating BLAS libraries outside standard locations may require setting
CMAKE_LIBRARY_PATH.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- mit-nlp/MITIE · Official homepage title · retained in its source language

