blob: ae38948eae385de61ab4a6d9c11d12806fc895c6 (
plain)
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
|
from libcpp.string cimport string
from libcpp.vector cimport vector
cdef extern from "<iostream>" namespace "std":
cdef cppclass istream:
pass
cdef cppclass istringstream(istream):
istringstream(char*)
cdef extern from "utils/filelib.h":
cdef cppclass ReadFile:
ReadFile(string)
istream* stream()
cdef extern from "utils/weights.h":
ctypedef double weight_t
cdef extern from "utils/wordid.h":
ctypedef int WordID
cdef extern from "utils/tdict.cc" namespace "TD":
cdef string GetString(vector[WordID] st)
cdef extern from "utils/verbose.h":
cdef void SetSilent(bint)
cdef extern from "utils/fdict.h" namespace "FD":
WordID Convert(char*)
string& Convert(WordID)
|