output proto from doc-sim and doc-classif
UDFs for serializing doc-sim/doc-classif results