asyml / stave

An extensible framework for building visualization and annotation tools to enable better interaction with NLP and Artificial Intelligence. This is part of the CASL project: http://casl-project.ai/
https://asyml.io
Apache License 2.0
49 stars 18 forks source link

Migrate `DataPack` parsing to backend #230

Open mylibrar opened 2 years ago

mylibrar commented 2 years ago

Is your feature request related to a problem? Please describe. Stave is maintaining a manual DataPack parsing function in its frontend codebase, which is susceptible to any updates on the serialization schema in Forte. We already have the DataPack serialization/deserialization implemented in Forte, and it might be hard to maintain two DataPack parsing systems at the same time. A more reasonable solution is to migrate the parsing logics to backend and let Forte handle most of the encoding/decoding work of DataPack.

Describe the solution you'd like

Describe alternatives you've considered We might also need to refactor some of the handlers in stave_viewer.py to ensure that StaveProcessor won't break.

Additional context