LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractAnalysisDictionary.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) 2003 by CEA *
8 * author Olivier MESNARD olivier.mesnard@cea.fr *
9 * *
10 * composed dictionnary *
11 ***************************************************************************/
12
13#ifndef LIMA_LINGUISTICPROCESSING_ANALYSISDICO_ANALYSISDICO_H
14#define LIMA_LINGUISTICPROCESSING_ANALYSISDICO_ANALYSISDICO_H
15
17
18// accessMethod
22
23namespace Lima
24{
25namespace LinguisticProcessing
26{
27namespace AnalysisDict
28{
29
34{
35 Q_OBJECT
36public:
37
38 AbstractAnalysisDictionary(QObject* parent = nullptr);
39
41
51 const Lima::LimaString& word) const = 0;
52
62 const StringsPoolIndex wordId) const = 0;
63
65 const StringsPoolIndex wordId,
66 const Lima::LimaString& word) const = 0;
67
75 virtual std::pair<DictionarySubWordIterator, DictionarySubWordIterator>
77 const int offset,
78 const LimaString& key ) const = 0;
79
84 virtual std::pair<DictionarySuperWordIterator, DictionarySuperWordIterator>
86 const LimaString& key ) const = 0;
87
92 virtual uint64_t getSize() const = 0;
93
94};
95
96} // namespace AnalysisDict
97} // namespace LinguisticProcessing
98} // namespace Lima
99
100#endif //COMMON_ANALYSISDICO_ANALYSISDICO_HPP
#define LIMA_ANALYSISDICT_EXPORT
virtual std::pair< DictionarySuperWordIterator, DictionarySuperWordIterator > getSuperWordEntries(const LimaString &key) const =0
return superword entries A superword entry is an entry that begins with the given key
virtual std::pair< DictionarySubWordIterator, DictionarySubWordIterator > getSubWordEntries(const int offset, const LimaString &key) const =0
return subword entries A subword entry is a word in the key string that begin at the given offset.
virtual DictionaryEntry getEntry(const Lima::LimaString &word) const =0
get dictionary entry for a word
virtual DictionaryEntry getEntry(const StringsPoolIndex wordId, const Lima::LimaString &word) const =0
virtual uint64_t getSize() const =0
return number of keys in dictionary
virtual DictionaryEntry getEntry(const StringsPoolIndex wordId) const =0
get dictionary entry for a word
NAUTITIA.
QString LimaString
Definition LimaString.h:33