LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
limaSimpleClient.h
Go to the documentation of this file.
1// Copyright (C) 2017 by CEA - LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef LIMASIMPLECLIENT_H
7#define LIMASIMPLECLIENT_H
8
9#include "common/LimaCommon.h"
10
11#ifdef WIN32
12
13#ifdef LIMA_LP_EXPORTING
14#define LIMA_LP_EXPORT __declspec(dllexport)
15#else
16#define LIMA_LP_EXPORT __declspec(dllimport)
17#endif
18
19
20#else // Not WIN32
21
22#define LIMA_LP_EXPORT
23
24#endif
25
26#include <iostream>
27
28namespace Lima {
29
30// internal delegate class to implement the API
31class LimaSimpleClientDelegate;
32
34{
35public:
38
45 void initialize(const std::string& language, const std::string& pipeline);
46
57 std::string analyze(const std::string& text);
58
59private:
60 LimaSimpleClientDelegate* m_delegate;
61};
62
63} // end namespace
64
65#endif
#define LIMA_LP_EXPORT
NAUTITIA.