Learn R Programming

wru (version 3.1.0)

setup_ebisg: Set up Python environment for eBISG predictions

Description

Installs the required Python packages (sentence-transformers and torch) and downloads pre-trained MLP model weights. Call this once before using predict_race(..., model = "eBISG").

Usage

setup_ebisg(
  envname = "r-ebisg",
  ebisg.model = "intfloat/multilingual-e5-large"
)

Arguments

envname

Name of the Python virtual environment to use. Defaults to "r-ebisg".

ebisg.model

Which embedding model to set up. Defaults to "intfloat/multilingual-e5-large".