gatenlp.docformats.flatbuffers module

For now, a placeholder to remind us looking into whether it makes sense to use flatbuffers as an additional storage/wire format. May be more compact and much faster than json or even bson.

gatenlp.docformats.flatbuffers.dump(fp, obj)[source]

Save document to file in original GATE XML format. :param fp: :param obj: :return:

gatenlp.docformats.flatbuffers.load(fp)[source]

Load gatedocument from the given file. :param fp: file-like object :return: the object