LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deaccentuatedTransition.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 *
8 * @file deaccentuatedTransition.h
9 * @author besancon (besanconr@zoe.cea.fr)
10 * @date Mon Jan 3 2005
11 * @version $Id$
12 * copyright Copyright (C) 2005-2012 by CEA LIST
13 * Project Automaton
14 *
15 * @brief
16 *
17 *
18 ***********************************************************************/
19
20#ifndef DEACCENTUATEDTRANSITION_H
21#define DEACCENTUATEDTRANSITION_H
22
23#include "AutomatonExport.h"
24#include "transitionUnit.h"
25//#include "linguisticProcessing/core/FlatTokenizer/CharChart.h"
26
27namespace Lima {
28namespace LinguisticProcessing {
29namespace FlatTokenizer {
30class CharChart;
31}
32}
33}
34
35namespace Lima {
36namespace LinguisticProcessing {
37namespace Automaton {
38
40{
41 public:
43 DeaccentuatedTransition(const LimaString& deaccentuatedForm,
44 MediaId language);
48
49 // functions inherited from TransitionUnit
50 DeaccentuatedTransition* clone() const override;
51 DeaccentuatedTransition* create() const override;
52
53 TypeTransition type() const override;
54
55 std::string printValue() const override;
56 bool operator== (const TransitionUnit&) const override;
57
58 // comparison with elements of texts (tokens)
59 bool compare(const LinguisticAnalysisStructure::AnalysisGraph& graph,
60 const LinguisticGraphVertex& vertex,
61 AnalysisContent& analysis,
63 const LinguisticAnalysisStructure::MorphoSyntacticData* data) const override;
64
65 // specific member functions
67 { return m_deaccentuatedForm; }
68 MediaId getLanguage() const { return m_language; }
69
70 private:
71 LimaString m_deaccentuatedForm;
72 MediaId m_language;
73 std::shared_ptr<FlatTokenizer::CharChart> m_charchart;
74};
75
76} // end namespace
77} // end namespace
78} // end namespace
79
80#endif
#define LIMA_AUTOMATON_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.
QString LimaString
Definition LimaString.h:33