Commit de88a137 authored by Mathieu Giraud's avatar Mathieu Giraud

core/segment.cpp: set clone name in FineSegmenter.toOutput()

parent 2f78933e
......@@ -1356,6 +1356,8 @@ void FineSegmenter::toOutput(CloneOutput *clone){
if (isSegmented()) {
clone->set("name", code);
if (isDSegmented()) {
clone->setSeg("N1", seg_N1.size());
clone->setSeg("N2", seg_N2.size());
......@@ -1381,6 +1383,10 @@ void FineSegmenter::toOutput(CloneOutput *clone){
});
}
}
else // not segmented
{
clone->set("name", label);
}
}
json toJsonSegVal(string s) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment