DefinePreTreatment.vue 1.54 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
    <v-container>
    <v-card
      outlined
      class="my-5"
    >
      <v-card-title class="justify-center py-6">
        <h2 class="display-1">{{ $t('pre-treatment-title') }}</h2>
      </v-card-title>
      <div class="px-12" v-if="show">
        <v-checkbox v-model="tokenization" label="Tokenization" />
        <v-checkbox v-model="utf_conversion" label="Conversion UTF" />
        <v-checkbox v-model="sentence_segmentation" label="Segmentation en phrase" />
      </div>
      <v-row class="px-12" v-if="!show">
          <v-col v-for="option in pretreatment_options" :key="option.name">
              <v-checkbox v-model="option.value" :label="option.fr_name" />
          </v-col>
      </v-row>
    </v-card>
    </v-container>
</template>
<script>
    export default {
        data: () => ({
            show: false,
            sentence_segmentation: true,
            utf_conversion: false,
            tokenization: true,
            pretreatment_options: [
                {name:"sentence_segmentation", fr_name:"Segmentation en phrase",value: true},
                {name:"tokenization", fr_name: "Segmentation en mot", value: true},
                {name:"POS-Tagging", fr_name:"Analyse morphosyntaxique", value: true},
                {name:"utf_conversion", fr_name: "Conversion UTF",value: false},
                
                
            ]
        })
    }
</script>

<i18n>
{
    "fr":{
        "pre-treatment-title":"Options de pré-traitement"
    },
    "en":{
        "pre-treatment-title":"Pre-treatment options"
    }
}
</i18n>