clu-ling / py-processors

A wrapper for interacting with the CLU Lab's processors library.
https://github.com/myedibleenso/py-processors
7 stars 3 forks source link

Ability to access serializer class #1

Closed michaelcapizzi closed 8 years ago

michaelcapizzi commented 8 years ago

It would be helpful to have access to the Serializer class from the original processors library.

This would help with the annotation time required for large documents.

myedibleenso commented 8 years ago

How do you want this to work? Do you need to load something serialized, serialize something you've annotated, or both?

michaelcapizzi commented 8 years ago

I don't think one is very useful without the other. So ideally, one could serialize to text file (similarly to how it's done in scala) and then also import that serialization.

myedibleenso commented 8 years ago

I've added to/from JSON methods to all classes. processors-server has utilities for converting this JSON into a processors.Document. Not sure if/when those changes will make it into processors though.