Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cimport stdlib
- cdef extern from "link-includes.h":
- pass
- cdef extern from "api-structures.h":
- ctypedef struct Parse_Options_s:
- pass
- ctypedef struct Dictionary_s:
- pass
- ctypedef Parse_Options_s* Parse_Options_s
- ctypedef Dictionary_s* Dictionary
- cdef extern from "api.h":
- Dictionary dictionary_create(char* dict_name, char* pp_name, char* cons_name, char* affix_name)
- int dictionary_delete(Dictionary d)
- def foo():
- cdef Dictionary = dictionary_create("4.0.dict", "4.0.knowledge", "4.0.constituent-knowledge", "4.0.affix")
Add Comment
Please, Sign In to add comment