-
Notifications
You must be signed in to change notification settings - Fork 7
/
uiBreakIntoWords.R
64 lines (38 loc) · 2.33 KB
/
uiBreakIntoWords.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
## uiBreakIntoWords.R
## App BreakIntoWords tab (client side)
## by Phil Ferriere
menuItemBreakIntoWords = menuSubItem("Break Into Words", tabName = "tabNameBreakIntoWords")
tabItemBreakIntoWords = tabItem(
tabName = "tabNameBreakIntoWords",
fluidRow(column(width = 12, box(width = 12, title = "Quick Help", status = "warning", solidHeader = TRUE, collapsible = TRUE,
includeMarkdown("uiBreakIntoWordsHelpText.md")
))),
fluidRow(column(width = 12, box(width = 12, title = "Break Into Words", status = "primary", solidHeader = TRUE, align = "center",
fluidRow(column(width = 12, box(width = 12, align = "left",
textInput(inputId = "wordsTextInputBreakIntoWords", label = "Text To Break Into Words:", value = "testforwordbreak", width = NULL, placeholder = "Hint: Enter some text")
))),
fluidRow(column(width = 4, box(width = 12, align = "left",
selectInput(inputId = "lmSelectInputBreakIntoWords", label = "Language Model", selected = "body", choices = c("title", "anchor", "query", "body"), width = NULL)
)), column(width = 4, box(width = 12, align = "left",
selectInput(inputId = "ngramSelectInputBreakIntoWords", label = "N-gram Order", selected = 5, choices = 1:5, width = NULL)
)), column(width = 4, box(width = 12, align = "left",
selectInput(inputId = "candidatesSelectInputBreakIntoWords", label = "Max Candidates", selected = 5, choices = 1:10, width = NULL)
))),
actionButton(inputId = "buttonBreakIntoWords", label = "Send Query", icon("paper-plane"), align = "center", width = NULL, style="color: #000; background-color: #337ab7; border-color: #2e6da4"), br(), br(), br(),
bsAlert("errBreakIntoWords"),
fluidRow(column(width = 12, box(width = 12, status = "primary", align = "left",
helpText("Results: "),
formattableOutput("resultsBreakIntoWords")
))),
fluidRow(column(width = 12, box(width = 12, status = "primary", align = "left",
helpText("Request URL: "),
tags$style(type='text/css', '#urlBreakIntoWords {font-size: small;}'),
verbatimTextOutput("urlBreakIntoWords")
))),
fluidRow(column(width = 12, box(width = 12, status = "primary", align = "left",
helpText("JSON Response: "),
tags$style(type='text/css', '#jsonBreakIntoWords {font-size: small;}'),
verbatimTextOutput("jsonBreakIntoWords")
)))
)))
)