forked from proycon/python-frog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frog_classes.pxd
92 lines (69 loc) · 1.97 KB
/
frog_classes.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#*****************************
# Python-frog
# by Maarten van Gompel
# Centre for Language Studies
# Radboud University Nijmegen
#
# Licensed under GPLv3
#****************************/
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp cimport bool
from libc.stdint cimport *
from libfolia_classes cimport Document
cdef extern from "<iostream>" namespace "std":
cdef cppclass ostream:
ostream()
cdef cppclass istream:
pass
extern ostream cout
extern ostream cerr
cdef extern from "ticcutils/Configuration.h" namespace "TiCC":
cdef cppclass Configuration:
Configuration()
bool fill( string filename )
bool hasSection( string section )
str configDir()
cdef extern from "ticcutils/LogStream.h" namespace "TiCC":
cdef cppclass LogStream:
LogStream()
LogStream(string prefix)
cdef extern from "frog/Frog.h":
cdef cppclass TimerBlock:
pass
cdef extern from "frog/ucto_tokenizer_mod.h":
cdef cppclass UctoTokenizer:
Document * tokenizehelper( string)
cdef extern from "frog/FrogAPI.h":
cdef cppclass FrogOptions:
bool doTok
bool doLemma
bool doMorph
bool doDeepMorph
bool doMwu
bool doIOB
bool doNER
bool doParse
bool doSentencePerLine
bool doQuoteDetection
bool doDirTest
bool doServer
bool doXMLin
bool doXMLout
bool doKanon
int debugFlag
int numThreads
bool interactive
string encoding
string uttmark
string listenport
string docid
string textclass
string tmpDirName
int maxParserTokens
cdef cppclass FrogAPI:
UctoTokenizer * tokenizer
FrogAPI(FrogOptions options, Configuration configuration, LogStream * logstream)
string Frogtostring(string s)
string defaultConfigDir()
string defaultConfigFile()