tycho-components 0.31.6 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,14 +13,16 @@ export declare const ParametersTexts: {
|
|
|
13
13
|
"parameter.tooltip.useDesigner": string;
|
|
14
14
|
"parameter.field.useTranscriber": string;
|
|
15
15
|
"parameter.tooltip.useTranscriber": string;
|
|
16
|
+
"parameter.field.useUDTool": string;
|
|
17
|
+
"parameter.tooltip.useUDTool": string;
|
|
16
18
|
"parameter.field.useSound": string;
|
|
17
19
|
"parameter.tooltip.useSound": string;
|
|
18
20
|
"parameter.field.useTranslation": string;
|
|
19
21
|
"parameter.tooltip.useTranslation": string;
|
|
20
22
|
"parameter.field.useLexicon": string;
|
|
21
23
|
"parameter.tooltip.useLexicon": string;
|
|
22
|
-
"parameter.field.
|
|
23
|
-
"parameter.tooltip.
|
|
24
|
+
"parameter.field.useUDParser": string;
|
|
25
|
+
"parameter.tooltip.useUDParser": string;
|
|
24
26
|
"parameter.field.defaultUD": string;
|
|
25
27
|
"parameter.tooltip.defaultUD": string;
|
|
26
28
|
"parameter.field.useParticipantChat": string;
|
|
@@ -53,14 +55,16 @@ export declare const ParametersTexts: {
|
|
|
53
55
|
"parameter.tooltip.useDesigner": string;
|
|
54
56
|
"parameter.field.useTranscriber": string;
|
|
55
57
|
"parameter.tooltip.useTranscriber": string;
|
|
58
|
+
"parameter.field.useUDTool": string;
|
|
59
|
+
"parameter.tooltip.useUDTool": string;
|
|
56
60
|
"parameter.field.useSound": string;
|
|
57
61
|
"parameter.tooltip.useSound": string;
|
|
58
62
|
"parameter.field.useTranslation": string;
|
|
59
63
|
"parameter.tooltip.useTranslation": string;
|
|
60
64
|
"parameter.field.useLexicon": string;
|
|
61
65
|
"parameter.tooltip.useLexicon": string;
|
|
62
|
-
"parameter.field.
|
|
63
|
-
"parameter.tooltip.
|
|
66
|
+
"parameter.field.useUDParser": string;
|
|
67
|
+
"parameter.tooltip.useUDParser": string;
|
|
64
68
|
"parameter.field.defaultUD": string;
|
|
65
69
|
"parameter.tooltip.defaultUD": string;
|
|
66
70
|
"parameter.field.useParticipantChat": string;
|
|
@@ -93,14 +97,16 @@ export declare const ParametersTexts: {
|
|
|
93
97
|
"parameter.tooltip.useDesigner": string;
|
|
94
98
|
"parameter.field.useTranscriber": string;
|
|
95
99
|
"parameter.tooltip.useTranscriber": string;
|
|
100
|
+
"parameter.field.useUDTool": string;
|
|
101
|
+
"parameter.tooltip.useUDTool": string;
|
|
96
102
|
"parameter.field.useSound": string;
|
|
97
103
|
"parameter.tooltip.useSound": string;
|
|
98
104
|
"parameter.field.useTranslation": string;
|
|
99
105
|
"parameter.tooltip.useTranslation": string;
|
|
100
106
|
"parameter.field.useLexicon": string;
|
|
101
107
|
"parameter.tooltip.useLexicon": string;
|
|
102
|
-
"parameter.field.
|
|
103
|
-
"parameter.tooltip.
|
|
108
|
+
"parameter.field.useUDParser": string;
|
|
109
|
+
"parameter.tooltip.useUDParser": string;
|
|
104
110
|
"parameter.field.defaultUD": string;
|
|
105
111
|
"parameter.tooltip.defaultUD": string;
|
|
106
112
|
"parameter.field.useParticipantChat": string;
|
|
@@ -13,14 +13,16 @@ export const ParametersTexts = {
|
|
|
13
13
|
"parameter.tooltip.useDesigner": "Enables the use of the editor version for working with texts featuring complex layouts, such as newspapers.",
|
|
14
14
|
"parameter.field.useTranscriber": "Transcriber",
|
|
15
15
|
"parameter.tooltip.useTranscriber": "Enables the use of the editor version for working with audio transcription.",
|
|
16
|
+
"parameter.field.useUDTool": "Universal Dependencies",
|
|
17
|
+
"parameter.tooltip.useUDTool": "Enables the Universal Dependencies editor for working with CoNLL-U annotation.",
|
|
16
18
|
"parameter.field.useSound": "Enable Sound Upload",
|
|
17
19
|
"parameter.tooltip.useSound": "Enables the use of audio in the corpus.",
|
|
18
20
|
"parameter.field.useTranslation": "Sentence Translations",
|
|
19
21
|
"parameter.tooltip.useTranslation": "Activates the translations for sentences in the Editor and Transcriber.",
|
|
20
22
|
"parameter.field.useLexicon": "POS tagger with Lexicon",
|
|
21
23
|
"parameter.tooltip.useLexicon": "Used when a parser is available, but no automatic tagger is present (which requires a minimum amount of words for training). If this condition is not met, the lexicon must be used for automatic tagging.",
|
|
22
|
-
"parameter.field.
|
|
23
|
-
"parameter.tooltip.
|
|
24
|
+
"parameter.field.useUDParser": "Use Universal Dependencies",
|
|
25
|
+
"parameter.tooltip.useUDParser": "Enables the use of Universal Dependencies for sentence editing.",
|
|
24
26
|
"parameter.field.defaultUD": "Default for Universal Dependencies",
|
|
25
27
|
"parameter.tooltip.defaultUD": "Indicates that a corpus is set to use Universal Dependencies as the default framework for sentence editing.",
|
|
26
28
|
"parameter.field.useParticipantChat": "CHAT attributes",
|
|
@@ -53,14 +55,16 @@ export const ParametersTexts = {
|
|
|
53
55
|
"parameter.tooltip.useDesigner": "Habilita o uso da versão do editor para trabalhar com textos de layouts complexos, como jornais.",
|
|
54
56
|
"parameter.field.useTranscriber": "Transcriber",
|
|
55
57
|
"parameter.tooltip.useTranscriber": "Habilita o uso da versão do editor para trabalhar com transcrição de áudio.",
|
|
58
|
+
"parameter.field.useUDTool": "Dependências Universais",
|
|
59
|
+
"parameter.tooltip.useUDTool": "Habilita o editor de Dependências Universais para trabalhar com anotação CoNLL-U.",
|
|
56
60
|
"parameter.field.useSound": "Habilitar Upload de Som",
|
|
57
61
|
"parameter.tooltip.useSound": "Habilita o uso de áudio no corpus.",
|
|
58
62
|
"parameter.field.useTranslation": "Traduções de Frases",
|
|
59
63
|
"parameter.tooltip.useTranslation": "Ativa as traduções para frases no editor e Transcriber.",
|
|
60
64
|
"parameter.field.useLexicon": "POS tagger com Léxico",
|
|
61
65
|
"parameter.tooltip.useLexicon": "Usado quando um parser está disponível, mas não há um tagger automático presente (o que requer uma quantidade mínima de palavras para treinamento). Se esta condição não for atendida, o léxico deve ser usado para marcação automática.",
|
|
62
|
-
"parameter.field.
|
|
63
|
-
"parameter.tooltip.
|
|
66
|
+
"parameter.field.useUDParser": "Usar Dependências Universais",
|
|
67
|
+
"parameter.tooltip.useUDParser": "Habilita o uso de Dependências Universais para edição de frases.",
|
|
64
68
|
"parameter.field.defaultUD": "Padrão para Dependências Universais",
|
|
65
69
|
"parameter.tooltip.defaultUD": "Indica que um corpus está configurado para usar Dependências Universais como o framework padrão para edição de frases.",
|
|
66
70
|
"parameter.field.useParticipantChat": "Atributos CHAT",
|
|
@@ -93,14 +97,16 @@ export const ParametersTexts = {
|
|
|
93
97
|
"parameter.tooltip.useDesigner": "Abilita l'uso della versione di editor per lavorare con testi con layout complessi, come giornali.",
|
|
94
98
|
"parameter.field.useTranscriber": "Transcriber",
|
|
95
99
|
"parameter.tooltip.useTranscriber": "Abilita l'uso della versione di editor per lavorare con la trascrizione audio.",
|
|
100
|
+
"parameter.field.useUDTool": "Dipendenze Universali",
|
|
101
|
+
"parameter.tooltip.useUDTool": "Abilita l'editor di Dipendenze Universali per lavorare con l'annotazione CoNLL-U.",
|
|
96
102
|
"parameter.field.useSound": "Abilita Caricamento Audio",
|
|
97
103
|
"parameter.tooltip.useSound": "Abilita l'uso dell'audio nel corpus.",
|
|
98
104
|
"parameter.field.useTranslation": "Traduzioni delle Frasi",
|
|
99
105
|
"parameter.tooltip.useTranslation": "Attiva le traduzioni per le frasi in editor e Transcriber.",
|
|
100
106
|
"parameter.field.useLexicon": "POS tagger con Lessico",
|
|
101
107
|
"parameter.tooltip.useLexicon": "Utilizzato quando un parser è disponibile, ma nessun tagger automatico è presente (che richiede una quantità minima di parole per l'addestramento). Se questa condizione non è soddisfatta, il lessico deve essere utilizzato per la marcatura automatica.",
|
|
102
|
-
"parameter.field.
|
|
103
|
-
"parameter.tooltip.
|
|
108
|
+
"parameter.field.useUDParser": "Utilizza Dipendenze Universali",
|
|
109
|
+
"parameter.tooltip.useUDParser": "Abilita l'uso di Dipendenze Universali per l'editing delle frasi.",
|
|
104
110
|
"parameter.field.defaultUD": "Predefinito per Dipendenze Universali",
|
|
105
111
|
"parameter.tooltip.defaultUD": "Indica che un corpus è impostato per utilizzare Dipendenze Universali come framework predefinito per l'editing delle frasi.",
|
|
106
112
|
"parameter.field.useParticipantChat": "Attributi CHAT",
|
|
@@ -24,7 +24,7 @@ const PARAMETERS = [
|
|
|
24
24
|
'useSound',
|
|
25
25
|
'useTranslation',
|
|
26
26
|
'useLexicon',
|
|
27
|
-
'
|
|
27
|
+
'useUDParser',
|
|
28
28
|
'defaultUD',
|
|
29
29
|
];
|
|
30
30
|
const PARAMETERS_CATALOG = ['useGrid', 'useCategory'];
|
|
@@ -40,4 +40,5 @@ const PARAMETERS_TOOLS = [
|
|
|
40
40
|
'useTranslations',
|
|
41
41
|
'useDesigner',
|
|
42
42
|
'useTranscriber',
|
|
43
|
+
'useUDTool',
|
|
43
44
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Corpus } from "../configs/types/Corpus";
|
|
2
|
-
export type PlatformTools = "EDICTOR" | "TRANSLATION" | "DESIGN" | "TRANSCRIBER" | "SYNTREES";
|
|
2
|
+
export type PlatformTools = "EDICTOR" | "TRANSLATION" | "DESIGN" | "TRANSCRIBER" | "UD" | "SYNTREES";
|
|
3
3
|
export type OpenDocumentParams = {
|
|
4
4
|
page: string;
|
|
5
5
|
corpus: Corpus | undefined;
|
|
@@ -31,6 +31,14 @@ export const EDITION_TOOLS = [
|
|
|
31
31
|
icon: "music_cast",
|
|
32
32
|
path: "/transcriber",
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
parameter: "useUDTool",
|
|
36
|
+
name: "UD",
|
|
37
|
+
action: "actions:actions.label.ud",
|
|
38
|
+
title: "actions:actions.name.ud",
|
|
39
|
+
icon: "account_tree",
|
|
40
|
+
path: "/ud",
|
|
41
|
+
},
|
|
34
42
|
];
|
|
35
43
|
const getTitle = (defaultTool) => {
|
|
36
44
|
const tool = defaultTool || "EDICTOR";
|
|
@@ -67,6 +75,9 @@ const openEdictor = (uid, ctxPath, sameWindow) => {
|
|
|
67
75
|
const openDesign = (uid, ctxPath, sameWindow) => {
|
|
68
76
|
navigateTo(`/design/${uid}`, ctxPath, sameWindow);
|
|
69
77
|
};
|
|
78
|
+
const openUd = (uid, ctxPath, sameWindow) => {
|
|
79
|
+
navigateTo(`/ud/${uid}`, ctxPath, sameWindow);
|
|
80
|
+
};
|
|
70
81
|
const getDocumentUrl = ({ page, corpus, hasParameter, defaultTool, ctxPath, }) => {
|
|
71
82
|
if (defaultTool) {
|
|
72
83
|
return withCtxPath(`${EDITION_TOOLS.find((t) => t.name === defaultTool)?.path}/${page}`, ctxPath);
|
|
@@ -85,6 +96,9 @@ const getDocumentUrl = ({ page, corpus, hasParameter, defaultTool, ctxPath, }) =
|
|
|
85
96
|
else if (hasParameter(corpus, "useTranscriber")) {
|
|
86
97
|
return withCtxPath(`/transcriber/${page}`, ctxPath);
|
|
87
98
|
}
|
|
99
|
+
else if (hasParameter(corpus, "useUDTool")) {
|
|
100
|
+
return withCtxPath(`/ud/${page}`, ctxPath);
|
|
101
|
+
}
|
|
88
102
|
return undefined;
|
|
89
103
|
};
|
|
90
104
|
const redirectPage = ({ corpus, uid, hasParameter, tool, ctxPath, sameWindow, }) => {
|
|
@@ -104,6 +118,9 @@ const redirectPage = ({ corpus, uid, hasParameter, tool, ctxPath, sameWindow, })
|
|
|
104
118
|
else if (hasParameter(corpus, "useTranscriber")) {
|
|
105
119
|
openTranscriber(uid, ctxPath, sameWindow);
|
|
106
120
|
}
|
|
121
|
+
else if (hasParameter(corpus, "useUDTool")) {
|
|
122
|
+
openUd(uid, ctxPath, sameWindow);
|
|
123
|
+
}
|
|
107
124
|
};
|
|
108
125
|
const openDocument = ({ page, corpus, hasParameter, defaultTool, ctxPath, }) => {
|
|
109
126
|
const documentUrl = getDocumentUrl({
|