Skip to content

Commit

Permalink
minor fixes for token replace dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Oct 2, 2024
1 parent 1e56662 commit 7dac5e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/sentence/ConlluDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export default defineComponent({
},
methods: {
getConllTable() {
this.conllTable = [];
this.conllContent = this.sentenceBus.sentenceSVGs[this.userId].exportConll();
this.nodesJson = this.sentenceBus.sentenceSVGs[this.userId].treeJson.nodesJson;
this.groupsJson = this.sentenceBus.sentenceSVGs[this.userId].treeJson.groupsJson;
Expand All @@ -299,9 +300,6 @@ export default defineComponent({
MISC: this.formatTableEntry(node.MISC, '='),
});
}
this.conllColumnsToCheck.forEach((column) => {
this.formatErrorTable[column] = { error: false, message: '' };
});
},
formatTableEntry(entry: any, linkOperator: string ) {
return Object.entries(entry)
Expand Down
2 changes: 1 addition & 1 deletion src/components/sentence/TokensReplaceDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default defineComponent({
this.tokensForms = [this.token.FORM + tokens[`${id +1 }`].FORM];
this.tokensIndexes = [id, id + 1];
} else if (option == 'merge_left') {
this.tokensForms = [tokens[id - 2].FORM + this.token.FORM];
this.tokensForms = [tokens[id - 1].FORM + this.token.FORM];
this.tokensIndexes = [id - 1, id];
} else if (option == 'insert_before') {
this.tokensForms = ['_', this.token.FORM];
Expand Down

0 comments on commit 7dac5e8

Please sign in to comment.