forked from GitHub/gf-core
now there is a limit of 2000000 items in the chart of the robust parser. This prevents from explosion in the memory size but it will also prevent us from parsing some sentences.
This commit is contained in:
@@ -72,6 +72,15 @@ pgf_read(GuIn* in, GuPool* pool, GuExn* err);
|
||||
bool
|
||||
pgf_load_meta_child_probs(PgfPGF*, const char* fpath, GuPool* pool);
|
||||
|
||||
typedef struct PgfConcr PgfConcr;
|
||||
|
||||
void
|
||||
pgf_set_item_quota(PgfConcr* concr, int quota);
|
||||
|
||||
int
|
||||
pgf_get_item_quota(PgfConcr* concr);
|
||||
|
||||
|
||||
#include <gu/type.h>
|
||||
extern GU_DECLARE_TYPE(PgfPGF, struct);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user