-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
120 lines (113 loc) · 4.39 KB
/
ui.R
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
ui <- dashboardPage(
dashboardHeader(title = "ALAIN"),
dashboardSidebar(
sidebarMenu(
menuItem("Lisibilité", tabName = "lisibilite", icon = icon("eye-open", lib = "glyphicon")),
menuItem("Superpositions", tabName = "overlap", icon = icon("file-alt")),
menuItem("Analyse de corpus", tabName = "corpus", icon = icon("folder-open", lib = "glyphicon")),
menuItem("Voir le parsing", tabName = "parsing", icon = icon("th-list", lib = "glyphicon"))
)
),
dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "lisibilite",
h1("Production d'indices de lisibilité"),
fluidRow(
box (
title = "Entrez du texte ici",
solidHeader = FALSE,
collapsible = FALSE,
width = 6,
"Des truc peuvent s'écrire ici",
textAreaInput(inputId="boite_lisib",
label = "",
placeholder = "entrez texte ici",
value = "Je pense donc je suis un fripon.",
height = "400"),
actionButton(inputId = "but_calculer_lisib", "Calculer les indices de lisibilité")
),
), #fin fluidRow
fluidRow(tabBox(
width = 12,
side = "left",
selected = "Stats phrases",
tabPanel (
title = "Stats phrases",
solidHeader = FALSE,
DTOutput("tablo_stats_phrases")
),
tabPanel (
title = "Stats parag",
solidHeader = FALSE,
DTOutput("tablo_stats_parag")
),
tabPanel (
title = "Stats document",
solidHeader = FALSE,
DTOutput("tablo_stats_doc")
) #fin box de droite
))
),
# Second tab content
tabItem(
tabName = "overlap",
h1("Évaluation des superpositions lexicales."),
fluidRow(
box (
title = "Entrez du texte ici",
solidHeader = TRUE,
collapsible = FALSE,
width = 6,
"Des truc peuvent s'écrire ici",
textAreaInput(
inputId = "boite_overlap",
label = "",
placeholder = "entrez texte ici",
value = default.overlap.box.content,
height = "400"
),
actionButton("but_calculer_overlap", "Calculer les superpositions")
)
),
fluidRow(
box (
width = 9,
title = "Résultats",
DTOutput("tablo_overlaps", width="100%") %>% withSpinner(type=4),
actionButton("but_telecharger_colab", "Télécharger les résultats")
)
)
),
# Third tab content
tabItem(tabName = "corpus",
h1("Analyse de corpus"),
fileInput("fichier_corpus", "Sélectionnez votre fichier zip",
accept = c(
"application/zip",
".zip")
),
"ici vont app les carac du corpus", br(), br(),
actionButton("but_telecharger_ind_corpus", "Télécharger caractéristiques du corpus")
),
# Fourth tab content
tabItem(tabName = "parsing",
h1("Parsing"),
tabBox(
width = 12,
side = "left",
selected = "Parsing de base",
tabPanel("Parsing de base",
actionButton("but_telecharger_parsing", "Télécharger le tableau d'analyse de base"), br(),
DTOutput("parsed", width="100%") %>% withSpinner(type=4) ),
tabPanel("Parsing augmenté",
actionButton("but_telecharger_parsing_aug", "Télécharger le tableau d'analyse"), br(),
DTOutput("parsedAug", width="100%") %>% withSpinner(type=4) ),
tabPanel("Mots rares",
actionButton("but_telecharger_motsrares", "Télécharger le tableau des mots rares"), br(),
DTOutput("tablo_mots_rares2", width = "100%"))
)
)
)
)
)