Commit
·
5f26241
1
Parent(s):
67bc9b1
Change default uncertainty to 1
Browse files
search.py
CHANGED
@@ -95,7 +95,7 @@ def write_grascii_search():
|
|
95 |
help="""
|
96 |
How to intepret ambiguous Grascii strings.
|
97 |
|
98 |
-
- best: Only search using the best interpretation
|
99 |
- all: Search using all possible interpretations.
|
100 |
""",
|
101 |
)
|
@@ -103,10 +103,15 @@ def write_grascii_search():
|
|
103 |
"Uncertainty",
|
104 |
min_value=0,
|
105 |
max_value=2,
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
107 |
)
|
108 |
fix_first = st.checkbox(
|
109 |
-
"Fix First", help="Apply an uncertainty of 0 to the first token"
|
110 |
)
|
111 |
search_mode = st.selectbox(
|
112 |
"Search Mode",
|
@@ -114,9 +119,9 @@ def write_grascii_search():
|
|
114 |
help="""
|
115 |
The type of search to perform.
|
116 |
|
117 |
-
- match: Search for entries that closely match the Grascii string
|
118 |
-
- start: Search for entries that start with the Grascii string
|
119 |
-
- contain: Search for entries that contain the Grascii string
|
120 |
""",
|
121 |
)
|
122 |
annotation_mode = st.selectbox(
|
|
|
95 |
help="""
|
96 |
How to intepret ambiguous Grascii strings.
|
97 |
|
98 |
+
- best: Only search using the best interpretation.
|
99 |
- all: Search using all possible interpretations.
|
100 |
""",
|
101 |
)
|
|
|
103 |
"Uncertainty",
|
104 |
min_value=0,
|
105 |
max_value=2,
|
106 |
+
value=1,
|
107 |
+
help="""
|
108 |
+
The uncertainty of the strokes in the Grascii string.
|
109 |
+
|
110 |
+
A value of at least 1 is recommended for image searches.
|
111 |
+
""",
|
112 |
)
|
113 |
fix_first = st.checkbox(
|
114 |
+
"Fix First", help="Apply an uncertainty of 0 to the first token."
|
115 |
)
|
116 |
search_mode = st.selectbox(
|
117 |
"Search Mode",
|
|
|
119 |
help="""
|
120 |
The type of search to perform.
|
121 |
|
122 |
+
- match: Search for entries that closely match the Grascii string.
|
123 |
+
- start: Search for entries that start with the Grascii string.
|
124 |
+
- contain: Search for entries that contain the Grascii string.
|
125 |
""",
|
126 |
)
|
127 |
annotation_mode = st.selectbox(
|