Frog
clex.h
Go to the documentation of this file.
1 /* ex: set tabstop=8 expandtab: */
2 /*
3  Copyright (c) 2006 - 2020
4  CLST - Radboud University
5  ILK - Tilburg University
6 
7  This file is part of frog:
8 
9  A Tagger-Lemmatizer-Morphological-Analyzer-Dependency-Parser for
10  several languages
11 
12  frog is free software; you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 3 of the License, or
15  (at your option) any later version.
16 
17  frog is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program. If not, see <http://www.gnu.org/licenses/>.
24 
25  For questions and suggestions, see:
26  https://github.com/LanguageMachines/frog/issues
27  or send mail to:
28  lamasoftware (at ) science.ru.nl
29 
30 */
31 
32 #ifndef CLEX_H
33 #define CLEX_H
34 
35 #include <iostream>
36 #include <string>
37 #include <map>
38 
39 namespace CLEX {
41  enum Type {
43  A,
44  B,
45  C,
46  D,
47  I,
48  N,
49  O,
50  P,
51  Q,
52  V,
53  LET,
54  PN,
55  SPEC,
56  X,
57  Z,
60  GLUE,
62  };
63  bool is_CELEX_base( const Type& );
64  Type select_tag( const char ch );
65  std::string toString( const Type& );
66  Type toCLEX( const std::string& );
67  Type toCLEX( const char );
68  const std::string& get_iDescr( char c );
69  const std::string& get_tDescr( CLEX::Type t );
70 }
71 
72 std::ostream& operator<<( std::ostream&, const CLEX::Type& );
73 
74 #endif // CLEX_H
CLEX::O
@ O
Pronoun (CELEX tag)
Definition: clex.h:49
CLEX::C
@ C
Conjunction (CELEX tag)
Definition: clex.h:45
CLEX::Q
@ Q
Numeral (CELEX tag)
Definition: clex.h:51
CLEX::LET
@ LET
Letter (not in CELEX)
Definition: clex.h:53
CLEX::PN
@ PN
Proper Noun (not in CELEX)
Definition: clex.h:54
CLEX::NEUTRAL
@ NEUTRAL
No action.
Definition: clex.h:61
CLEX::GLUE
@ GLUE
Glue property.
Definition: clex.h:60
CLEX
Definition: clex.cxx:40
CLEX::is_CELEX_base
bool is_CELEX_base(const Type &t)
Definition: clex.cxx:163
CLEX::V
@ V
Verb (CELEX tag)
Definition: clex.h:52
CLEX::Z
@ Z
Expresssion-part.
Definition: clex.h:57
CLEX::Type
Type
all possible CELEX tags and action properties
Definition: clex.h:41
CLEX::get_iDescr
const string & get_iDescr(char c)
Definition: clex.cxx:225
CLEX::AFFIX
@ AFFIX
affix property
Definition: clex.h:58
CLEX::SPEC
@ SPEC
Special (not in CELEX)
Definition: clex.h:55
CLEX::get_tDescr
const std::string & get_tDescr(CLEX::Type t)
Definition: clex.cxx:240
CLEX::A
@ A
Adjective (CELEX tag)
Definition: clex.h:43
CLEX::N
@ N
Noun (CELEX tag)
Definition: clex.h:48
CLEX::X
@ X
Unanalysed.
Definition: clex.h:56
CLEX::UNASS
@ UNASS
unknow value
Definition: clex.h:42
CLEX::P
@ P
Preposition (CELEX tag)
Definition: clex.h:50
CLEX::toCLEX
Type toCLEX(const string &s)
Definition: clex.cxx:92
CLEX::toString
string toString(const Type &t)
Definition: clex.cxx:131
operator<<
std::ostream & operator<<(std::ostream &, const CLEX::Type &)
Definition: clex.cxx:258
CLEX::D
@ D
Article (CELEX tag)
Definition: clex.h:46
CLEX::I
@ I
Interjection (CELEX tag)
Definition: clex.h:47
CLEX::B
@ B
Adverb (CELEX tag)
Definition: clex.h:44
CLEX::select_tag
Type select_tag(const char ch)
Definition: clex.cxx:188
CLEX::XAFFIX
@ XAFFIX
x-affix property
Definition: clex.h:59