LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SelectionalRestrictionsConstraints.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
21#ifndef LIMA_SYNTACTICANALYSIS_SELECTIONALRESTRICTIONSCONSTRAINTS_H
22#define LIMA_SYNTACTICANALYSIS_SELECTIONALRESTRICTIONSCONSTRAINTS_H
23
25#include "SyntacticData.h"
30#include <iostream>
31
32namespace Lima {
33namespace LinguisticProcessing {
34namespace SyntacticAnalysis {
35
36//**********************************************************************
37// ids of constraints defined in this file
38#define StoreForDisambiguationId "StoreForDisambiguation"
39#define DisambiguateWithId "DisambiguateWith"
40
41class SelectionalPreferences;
42
45
49{
50public:
51 explicit StoreForDisambiguation(MediaId language,
52 const LimaString& complement=LimaString());
54 bool operator()(const LinguisticAnalysisStructure::AnalysisGraph& graph,
55 const LinguisticGraphVertex& v1,
56 const LinguisticGraphVertex& v2,
57 AnalysisContent& analysis) const override;
58
59private:
60};
61
62
66{
67public:
68 explicit DisambiguateWith(MediaId language,
69 const LimaString& complement=LimaString());
71 bool operator()(const LinguisticAnalysisStructure::AnalysisGraph& graph,
72 const LinguisticGraphVertex& v1,
73 const LinguisticGraphVertex& v2,
74 AnalysisContent& analysis) const override;
75
76private:
77 MediaId m_language;
78 std::shared_ptr<SelectionalPreferences> m_preferences;
79};
80
81
83
84} // end namespace SyntacticAnalysis
85} // end namespace LinguisticProcessing
86} // end namespace Lima
87
88#endif // LIMA_SYNTACTICANALYSIS_SELECTIONALRESTRICTIONSCONSTRAINTS_H
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
#define LIMA_SYNTACTICANALYSIS_EXPORT
Data used for the syntactic analyzis of texts.
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
An AnalysisData containing a LinguisticGraph with a language and an id.
Abstract constraint function that takes a complement string that represents a relation name (entity t...
NAUTITIA.
QString LimaString
Definition LimaString.h:33