#ifndef UDPIPE_WRAPPER_H
#define UDPIPE_WRAPPER_H
#include <cstddef>
#include <cstdint>
#ifdef __cplusplus
extern "C" {
#endif
using UdpipeModel = struct UdpipeModel;
using UdpipeParseResult = struct UdpipeParseResult;
using UdpipeWord = struct {
const char *form; const char *lemma; const char *upostag; const char *xpostag; const char *feats; const char *deprel; const char *misc; int32_t id; int32_t head; int32_t sentence_id; };
auto udpipe_model_load(const char *model_path) -> UdpipeModel *;
auto udpipe_model_load_from_memory(const uint8_t *data,
size_t len) -> UdpipeModel *;
void udpipe_model_free(UdpipeModel *model);
auto udpipe_parse(UdpipeModel *model, const char *text) -> UdpipeParseResult *;
void udpipe_result_free(UdpipeParseResult *result);
auto udpipe_result_word_count(UdpipeParseResult *result) -> int32_t;
auto udpipe_result_get_word(UdpipeParseResult *result,
int32_t index) -> UdpipeWord;
auto udpipe_get_error() -> const char *;
#ifdef __cplusplus
}
#endif
#endif