LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LimaSimpleClient Class Reference

#include <linguisticProcessing/limaSimpleClient.h>

Public Member Functions

 LimaSimpleClient ()
 
 ~LimaSimpleClient ()
 
void initialize (const std::string &language, const std::string &pipeline)
 initialize the LIMA analyzer with one language and one pipeline
 
std::string analyze (const std::string &text)
 analyze a text, encoded in UTF-8.
 

Detailed Description

Definition at line 33 of file limaSimpleClient.h.

Constructor & Destructor Documentation

◆ LimaSimpleClient()

Lima::LimaSimpleClient::LimaSimpleClient ( )

Definition at line 51 of file limaSimpleClient.cpp.

◆ ~LimaSimpleClient()

Lima::LimaSimpleClient::~LimaSimpleClient ( )

Definition at line 56 of file limaSimpleClient.cpp.

Member Function Documentation

◆ analyze()

std::string Lima::LimaSimpleClient::analyze ( const std::string &  text)

analyze a text, encoded in UTF-8.

The text is supposed to be in the language with which LIMA has been initialized. The analysis will be performed using the pipeline given at the initialization.

Parameters
textthe text to analyze, in UTF-8.
Returns
a text string containing the result of the analysis (the format of the result depends on the pipeline)

Definition at line 80 of file limaSimpleClient.cpp.

◆ initialize()

void Lima::LimaSimpleClient::initialize ( const std::string &  language,
const std::string &  pipeline 
)

initialize the LIMA analyzer with one language and one pipeline

Parameters
languagethe language of the documents (3-letters ISO code)
pipelinethe name of the pipeline to initialize

Definition at line 63 of file limaSimpleClient.cpp.


The documentation for this class was generated from the following files: