pearmut 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
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.
- pearmut/app.py +73 -0
- pearmut/assignment.py +70 -17
- pearmut/cli.py +209 -136
- pearmut/constants.py +93 -0
- pearmut/static/basic.bundle.js +1 -1
- pearmut/static/basic.html +39 -3
- pearmut/static/dashboard.bundle.js +1 -1
- pearmut/static/dashboard.html +1 -1
- pearmut/static/index.html +1 -1
- pearmut/utils.py +1 -13
- {pearmut-1.0.0.dist-info → pearmut-1.0.1.dist-info}/METADATA +101 -11
- pearmut-1.0.1.dist-info/RECORD +20 -0
- pearmut-1.0.0.dist-info/RECORD +0 -19
- {pearmut-1.0.0.dist-info → pearmut-1.0.1.dist-info}/WHEEL +0 -0
- {pearmut-1.0.0.dist-info → pearmut-1.0.1.dist-info}/entry_points.txt +0 -0
- {pearmut-1.0.0.dist-info → pearmut-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {pearmut-1.0.0.dist-info → pearmut-1.0.1.dist-info}/top_level.txt +0 -0
pearmut/static/basic.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
padding-right: 10px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.output_src {
|
|
7
|
+
.output_src, .output_ref {
|
|
8
8
|
display: inline-block;
|
|
9
9
|
flex: 1;
|
|
10
10
|
box-sizing: border-box;
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
margin-bottom: 10px;
|
|
16
16
|
user-select: none;
|
|
17
17
|
box-shadow: 0 4px 6px #0005;
|
|
18
|
+
margin-right: 10px;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.output_candidate {
|
|
21
|
-
margin-left: 10px;
|
|
22
22
|
display: inline-block;
|
|
23
23
|
flex: 1;
|
|
24
24
|
box-sizing: border-box;
|
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
position: relative;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
/* When output_response contains slider_container children, stack vertically */
|
|
47
|
+
.output_response:has(.slider_container) {
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
align-items: stretch;
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
.output_response input[type=range] {
|
|
47
53
|
flex: 1;
|
|
48
54
|
min-width: 0;
|
|
@@ -56,6 +62,30 @@
|
|
|
56
62
|
margin-left: 5px;
|
|
57
63
|
}
|
|
58
64
|
|
|
65
|
+
/* Custom sliders styling */
|
|
66
|
+
.slider_container {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.slider_container:first-child {
|
|
73
|
+
margin-top: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.slider_container input[type=range] {
|
|
77
|
+
flex: 1;
|
|
78
|
+
min-width: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.slider_name {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
width: 120px;
|
|
84
|
+
margin-right: 8px;
|
|
85
|
+
color: #333;
|
|
86
|
+
flex-shrink: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
59
89
|
/* on displays with less than 1000px - stack vertically */
|
|
60
90
|
@media (max-width: 1000px) {
|
|
61
91
|
.output_candidate {
|
|
@@ -88,10 +118,16 @@
|
|
|
88
118
|
color: #777;
|
|
89
119
|
}
|
|
90
120
|
|
|
121
|
+
/* Hide anchors when custom sliders are present */
|
|
122
|
+
.output_response:has(.slider_container)::before,
|
|
123
|
+
.output_response:has(.slider_container)::after {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
91
127
|
.output_response::before {
|
|
92
128
|
left: calc(33% - 18px);
|
|
93
129
|
}
|
|
94
130
|
|
|
95
131
|
.output_response::after {
|
|
96
132
|
left: calc(66% - 36px);
|
|
97
|
-
}</style><script defer="defer" src="basic.bundle.js?
|
|
133
|
+
}</style><script defer="defer" src="basic.bundle.js?0d289122fd490c931aec"></script><link href="style.css?0d289122fd490c931aec" rel="stylesheet"></head><body><div style="max-width: 1600px; min-width: 900px; margin-left: auto; margin-right: auto; margin-top: 20px; padding-left: 10px;"><div class="white-box" style="margin-right: 10px; background-color: #e7e2cf; padding: 5px 15px 5px 5px;"><span id="instructions_global" style="display: inline-block; font-size: 11pt; width: calc(100% - 175px);"></span><div style="width: 170px; display: inline-block; vertical-align: top; text-align: right; padding-top: 5px;"><span id="time" style="width: 135px; text-align: left; display: inline-block; font-size: 11pt;" title="Approximation of total annotation time.">Time: 0m</span> <input type="button" value="⚙️" id="button_settings" style="height: 1.5em; width: 30px;"><br><br><div id="progress" style="text-align: center;"></div><br><br><input type="button" value="Next 🛠️" id="button_next" disabled="disabled" style="width: 170px; height: 2.5em;" title="Finish annotating all examples first."> <input type="button" value="skip tutorial" id="button_skip_tutorial" style="width: 170px; font-size: 11pt; height: 30px; margin-top: 10px; display: none;" title="Skip tutorial only if you completed it already."></div></div><div id="settings_div" class="white-box" style="margin-right: 20px; margin-top: 10px; display: none; background-color: #e7e2cf; font-size: 11pt;"><input type="checkbox" id="settings_approximate_alignment"> <label for="settings_approximate_alignment">Show approximate alignment</label><br><input type="checkbox" id="settings_word_level"> <label for="settings_word_level">Word-level selection</label><br><br><textarea id="settings_comment" style="width: 95%; height: 80px; resize: vertical; margin-top: 5px; padding: 5px; border-radius: 4px; border: 1px solid #999;" placeholder="Optional: Add any comments or feedback about this item. Will be submitted with Next."></textarea></div><div id="output_div" style="margin-top: 100px;"></div><br><br><br></div></body></html>
|