% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lexical_analysis.R
\name{init_spacy_nlp}
\alias{init_spacy_nlp}
\title{Initialize spaCy NLP}
\usage{
init_spacy_nlp(model = "en_core_web_sm", force = FALSE)
}
\arguments{
\item{model}{Character; spaCy model name (default: "en_core_web_sm").}

\item{force}{Logical; force reinitialization even if already initialized.}
}
\value{
Invisibly returns the SpacyNLP Python object.
}
\description{
Initialize the spaCy NLP pipeline with the specified model.
Uses a cached instance for efficiency.
}
\details{
Available models:
\itemize{
\item \code{en_core_web_sm}: Small English model (fast, no word vectors)
\item \code{en_core_web_md}: Medium English model (word vectors)
\item \code{en_core_web_lg}: Large English model (best accuracy)
}
}
\examples{
if (interactive()) {
init_spacy_nlp("en_core_web_sm")
}
}
\concept{lexical}
\keyword{internal}
