# -*- coding:utf-8 -*-

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'GPL-3.0'

cdef extern:

	ctypedef void* corenlp_t;

	corenlp_t CKIPCoreNLP_New() nogil;
	int CKIPCoreNLP_InitData(corenlp_t obj, char *FileName) nogil;
	int CKIPCoreNLP_ApplyFile(corenlp_t obj, char *input, char *output) nogil;
	int CKIPCoreNLP_ApplyList(corenlp_t obj, int length, const Py_UNICODE **inputList) nogil;
	int CKIPCoreNLP_Parse(corenlp_t obj, const Py_UNICODE* pwsText, Py_UNICODE** ppwsResult) nogil;
	int CKIPCoreNLP_ParseFile(corenlp_t obj, char *input, char *output) nogil;
	const Py_UNICODE* CKIPCoreNLP_GetResultBegin(corenlp_t obj) nogil;
	const Py_UNICODE* CKIPCoreNLP_GetResultNext(corenlp_t obj) nogil;
	void CKIPCoreNLP_Destroy(corenlp_t obj) nogil;
