LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
IdiomaticAlternativesConstraints.h
Go to the documentation of this file.
1// Copyright 2002-2020 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2005 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSING_MORPHOLOGICANALYISIDIOMATICALTERNATIVESCONSTRAINTS_H
11#define LIMA_LINGUISTICPROCESSING_MORPHOLOGICANALYISIDIOMATICALTERNATIVESCONSTRAINTS_H
12
15
16namespace Lima {
17
18namespace LinguisticProcessing {
19
20namespace MorphologicAnalysis {
21
22// ids for constraints in this file
23#define CreateIdiomaticAlternativeId "CreateIdiomaticAlternative"
24
26{
27public:
28 CreateIdiomaticAlternative(MediaId language,
29 const LimaString& complement=LimaString());
31 virtual bool operator()(Automaton::RecognizerMatch& match,
32 AnalysisContent& analysis) const override;
33
34private:
35
47 void removeEdges(LinguisticGraph& graph,
48 const Automaton::RecognizerMatch& match,
49 AnalysisContent& analysis) const;
50
51};
52
53
54} // MorphologicAnalysis
55
56} // LinguisticProcessing
57
58} // Lima
59
60#endif // LIMA_LINGUISTICPROCESSING_MORPHOLOGICANALYISIDIOMATICALTERNATIVESCONSTRAINTS_H
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
#define LIMA_MORPHOLOGICANALYSIS_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
NAUTITIA.
QString LimaString
Definition LimaString.h:33