LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
WordSenseUnit.cpp
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#include "WordSenseUnit.h"
7#include "CommonTypedefs.h"
8
9#include <iostream>
10
11namespace Lima
12{
13namespace LinguisticProcessing
14{
15namespace WordSenseDisambiguation
16{
18 uint64_t parentLemmaId,
19 Mode mode,
20 std::string& senseTag,
21 std::set<uint64_t>& senseMembersIds,
22 int freq):
23 m_parentLemmaId(parentLemmaId),
24 m_mode(mode),
25 m_senseId(senseId),
26 m_senseTag(senseTag),
27 m_senseMembersIds(senseMembersIds),
28 m_freq(freq)
29 {}
30
31 std::ostream& operator << (std::ostream& os, const WordSenseUnit& wsu)
32 {
33 os << wsu.parentLemmaId() << "#"<<wsu.senseId() << "(" << wsu.mode() << "):" << wsu.senseTag() ;
34 return os;
35 }
36
37
38
39
40} // namespace WordSenseDisambiguation
41} // namespace LinguisticProcessing
42} // namespace Lima
std::ostream & operator<<(std::ostream &os, const WordSenseAnnotation &wsa)
NAUTITIA.