extract_ner: Perform named entity recognition on text

View source: R/text_preprocessing.R

extract_nerR Documentation

Perform named entity recognition on text

Description

This function performs a simple dictionary-based named entity recognition. For more advanced NER, consider using external tools via reticulate.

Usage

extract_ner(
  text,
  entity_types = c("disease", "drug", "gene"),
  custom_dictionaries = NULL
)

Arguments

text

Character vector of texts to process

entity_types

Character vector of entity types to recognize

custom_dictionaries

List of custom dictionaries (named by entity type)

Value

A data frame containing found entities, their types, and positions


LBDiscover documentation built on June 16, 2025, 5:09 p.m.