LanguageMachines / libfolia

FoLiA library for C++
https://proycon.github.io/folia
GNU General Public License v3.0
15 stars 7 forks source link

Implement an incremental construction of FoLiA (output) files #22

Closed kosloot closed 5 years ago

kosloot commented 6 years ago

For some purposes it is handy to make it possible to incrementally construct a FoLiA document while keeping only fragments in memory. There are probably many way to accomplish this, but I would like to sketch a simple approach, which might be useful for ucto or frog.

This approach doesn't rely on SAX or XmlReader based features yet. That might be needed in the long run, but for now I propose an even simpler idea.

I will describe the API, which should almost be selfexplaining...

The xmltag could be a parameter too? for other roots.

Also in the future we could initialize from a FoLiA file, using XmlReader to initialize only a base document.

Typical usage: In UCTO:

In FROG

kosloot commented 5 years ago

This is now handled by the new folia_processor. Which is used by Ucto and Frog now.