Skip to content

Commit

Permalink
minor fix for conll dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Nov 27, 2024
1 parent 716c97d commit 30ddc36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/sentence/ConlluDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ export default defineComponent({
this.conllTable.push({
...node,
HEAD: node.HEAD === -1 ? '_' : node.HEAD,
FEATS: node.FEATS.length ? this.formatTableEntry(node.FEATS, '=') : '_',
DEPS: node.DEPS.length ? this.formatTableEntry(node.DEPS, ':') : '_',
MISC: node.MISC.length ? this.formatTableEntry(node.MISC, '='): '_',
FEATS: Object.keys(node.FEATS).length ? this.formatTableEntry(node.FEATS, '=') : '_',
DEPS: Object.keys(node.DEPS).length ? this.formatTableEntry(node.DEPS, ':') : '_',
MISC: Object.keys(node.MISC).length ? this.formatTableEntry(node.MISC, '='): '_',
});
}
},
Expand Down

0 comments on commit 30ddc36

Please sign in to comment.