LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractLexiconIdAccessor.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 20036 by CEA *
8 * author Olivier MESNARD olivier.mesnard@cea.fr *
9 * *
10 * abstractLexiconIdAccessor.h - description *
11 * AbstractLexiconIdAccessor = interface class *
12 * find implementations in LexiconIdAccessor, defaultIdAccessor *
13 ***************************************************************************/
14#ifndef FSA_ABSTRACT_LEXICON_ID_ACCESSOR_H
15#define FSA_ABSTRACT_LEXICON_ID_ACCESSOR_H
16
17#include "common/LimaCommon.h"
19
20namespace Lima {
21namespace Common {
22
24{
25 public:
28
29 // implementation of operation inherited from interface IndexElementIdGenerator
30 // rely on abstract operation implemented by concrete IdGenerator (fromMap or from fromFsaAccess)
31 virtual uint64_t getId(const Lima::LimaString& word) = 0;
32 virtual uint64_t getId(const std::vector<uint64_t>& structure) = 0;
33 virtual uint64_t getSize() const = 0;
34 virtual uint64_t getSimpleTermSize() const = 0;
35 static const uint64_t NOT_A_LEXICON_ID;
36 static const uint64_t MAX_TOKEN_ID;
37 static const uint64_t MAX_DEP_ID;
38 static const uint64_t BUFFER_SIZE;
39};
40
41} // namespace Common
42} // namespace Lima
43
44#endif //FSA_ABSTRACT_LEXICON_ID_ACCESSOR_H
#define LIMA_FSAACCESS_EXPORT
Definition LimaCommon.h:130
virtual uint64_t getId(const std::vector< uint64_t > &structure)=0
virtual uint64_t getId(const Lima::LimaString &word)=0
virtual uint64_t getSimpleTermSize() const =0
virtual uint64_t getSize() const =0
NAUTITIA.
QString LimaString
Definition LimaString.h:33