# thunlp/opennre

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/thunlp-opennre).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,466 stars · 1,050 forks · Python · MIT

## Links

- GitHub: https://github.com/thunlp/OpenNRE
- awesome-repositories: https://awesome-repositories.com/repository/thunlp-opennre.md

## Topics

`relation-extraction`

## Description

OpenNRE is a natural language processing library and neural relation extraction framework designed to transform unstructured text into structured relational data. It serves as a toolkit for identifying relationship types between entities and generating entity-relation-entity triples to populate and expand knowledge bases.

The framework provides tools for both supervised and distantly supervised relation extraction, allowing neural models to be trained on labeled datasets or via automated pipelines that align knowledge base triples with raw text.

The project covers a full information extraction pipeline, including transformer-based text encoding, relation inference, and the output of structured triples for knowledge graph construction.

## Tags

### Artificial Intelligence & ML

- [Entity and Relation Extraction](https://awesome-repositories.com/f/artificial-intelligence-ml/entity-and-relation-extraction.md) — Identifies relational facts between entities in plain text to produce structured knowledge triples. ([source](https://github.com/thunlp/opennre#readme))
- [Supervised Relation Extraction](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks/training-systems/weakly-supervised-learning/supervised-relation-extraction.md) — Implements a system for training neural models to recognize specific entity relationships using labeled or distantly supervised datasets.
- [Relation Extraction Training](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks/training-systems/weakly-supervised-learning/weak-supervision-classifier-training/relation-extraction-training.md) — Trains neural networks to identify and extract specific relationships between entities using various supervision methods. ([source](https://github.com/thunlp/opennre#readme))
- [Relation Inference Engines](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-management/model-training-and-inference-engines/relation-inference-engines.md) — Predicts specific relationship types and confidence scores for given sentences using pre-trained models. ([source](https://github.com/thunlp/opennre#readme))
- [Natural Language Processing Libraries](https://awesome-repositories.com/f/artificial-intelligence-ml/natural-language-processing-libraries.md) — Provides a set of tools for analyzing human language to transform unstructured text into structured relational data.
- [Supervised Learning Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-learning-frameworks.md) — Provides a framework for training neural networks on manually labeled datasets to map entity pairs to relationship categories.
- [Supervised Text Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-text-learning.md) — Trains neural network models to recognize specific relationship types using labeled datasets of entity pairs.
- [Modular Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-architectures/modular-architectures.md) — Provides a modular neural architecture allowing the use of interchangeable pre-trained language model encoders.
- [Distant Supervision Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-learning-pipelines/distant-supervision-pipelines.md) — Implements automated pipelines to label training data by aligning knowledge base triples with raw text.
- [Relation Scoring Mechanisms](https://awesome-repositories.com/f/artificial-intelligence-ml/vector-embeddings/sentence-embeddings/sentence-pair-scoring/relation-scoring-mechanisms.md) — Calculates the probability of a relationship existing between two identified entities based on contextual embeddings.

### Part of an Awesome List

- [Information Extraction](https://awesome-repositories.com/f/awesome-lists/ai/information-extraction.md) — Implements a full information extraction pipeline that converts natural language into machine-readable relational facts.

### Data & Databases

- [Transformer Text Encoders](https://awesome-repositories.com/f/data-databases/data-categorization/categorical-encoders/cardinality-based-text-encoders/transformer-text-encoders.md) — Uses transformer-based encoders to convert raw text into dense vector representations for relation extraction.
- [Knowledge Graph Construction Tools](https://awesome-repositories.com/f/data-databases/knowledge-graph-construction-tools.md) — Turns raw text into a network of entities and relations to build structured knowledge graphs.
- [Triple Formatters](https://awesome-repositories.com/f/data-databases/triple-stores/triple-formatters.md) — Formats model predictions into subject-predicate-object sets for direct integration into knowledge graphs.
