extract_ner {LBDiscover}R 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


[Package LBDiscover version 0.1.0 Index]