pearmut 0.3.1__tar.gz → 0.3.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -308,7 +308,7 @@ Management link (shown when adding campaigns or running server) provides:
308
308
  - Task progress reset (data preserved)
309
309
  - Download progress and annotations
310
310
 
311
- <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/8953252c-d7b1-428c-a974-5bc7501457c7" />
311
+ <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/5a27271c-1e80-4e54-b242-c361265df86e" />
312
312
 
313
313
  Completion tokens are shown at annotation end for verification (download correct tokens from dashboard). Incorrect tokens can be shown if quality control fails.
314
314
 
@@ -288,7 +288,7 @@ Management link (shown when adding campaigns or running server) provides:
288
288
  - Task progress reset (data preserved)
289
289
  - Download progress and annotations
290
290
 
291
- <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/8953252c-d7b1-428c-a974-5bc7501457c7" />
291
+ <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/5a27271c-1e80-4e54-b242-c361265df86e" />
292
292
 
293
293
  Completion tokens are shown at annotation end for verification (download correct tokens from dashboard). Incorrect tokens can be shown if quality control fails.
294
294
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -308,7 +308,7 @@ Management link (shown when adding campaigns or running server) provides:
308
308
  - Task progress reset (data preserved)
309
309
  - Download progress and annotations
310
310
 
311
- <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/8953252c-d7b1-428c-a974-5bc7501457c7" />
311
+ <img width="1000" alt="Management dashboard" src="https://github.com/user-attachments/assets/5a27271c-1e80-4e54-b242-c361265df86e" />
312
312
 
313
313
  Completion tokens are shown at annotation end for verification (download correct tokens from dashboard). Incorrect tokens can be shown if quality control fails.
314
314
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pearmut"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
  description = "A tool for evaluation of model outputs, primarily MT."
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -45,7 +45,7 @@ def _run(args_unknown):
45
45
 
46
46
  uvicorn.run(
47
47
  app,
48
- host="127.0.0.1",
48
+ host="0.0.0.0",
49
49
  port=args.port,
50
50
  reload=False,
51
51
  # log_level="info",
@@ -182,7 +182,7 @@ def _add_single_campaign(data_file, overwrite, server):
182
182
  # Template defaults to "basic" if not specified
183
183
  assignment = campaign_data["info"]["assignment"]
184
184
  # use random words for identifying users
185
- rng = random.Random(campaign_data["campaign_id"])
185
+ rng = random.Random()
186
186
  rword = wonderwords.RandomWord(rng=rng)
187
187
 
188
188
  # Parse users specification from info
@@ -265,6 +265,10 @@ def _add_single_campaign(data_file, overwrite, server):
265
265
  raise ValueError("'users' list must contain all strings or all dicts.")
266
266
  else:
267
267
  raise ValueError("'users' must be an integer or a list.")
268
+
269
+ if "protocol" not in campaign_data["info"]:
270
+ campaign_data["info"]["protocol"] = "ESA"
271
+ print("Warning: 'protocol' not specified in campaign info. Defaulting to 'ESA'.")
268
272
 
269
273
  # For task-based, data is a dict mapping user_id -> tasks
270
274
  # For single-stream, data is a flat list (shared among all users)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes