Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
a4fd524f
Unverified
Commit
a4fd524f
authored
Aug 21, 2025
by
Anri Lombard
Committed by
GitHub
Aug 21, 2025
Browse files
Update utils.py (#3246)
parent
98c1880f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/afrobench/masakhapos/utils.py
lm_eval/tasks/afrobench/masakhapos/utils.py
+1
-1
No files found.
lm_eval/tasks/afrobench/masakhapos/utils.py
View file @
a4fd524f
...
...
@@ -4,7 +4,7 @@ from lm_eval.utils import weighted_f1_score
def
doc_to_text
(
doc
):
output
=
"""Please provide the POS tags for each word in the input sentence. The input will be a list of words in
the sentence. The output format should be a list of tuples, where each tuple consists of a word from the input text
and its corresponding POS tag label from the tag label set: ["ADJ", "ADP", "ADV", "AUX", "CCONJ, "DET", "INTJ",
and its corresponding POS tag label from the tag label set: ["ADJ", "ADP", "ADV", "AUX", "CCONJ
"
, "DET", "INTJ",
"NOUN", "NUM", "PART", "PRON", "PROPN", "PUNCT" "SCONJ", "SYM", "VERB", "X"].
\n
Your response should include only a
list of tuples, in the order that the words appear in the input sentence, with each tuple containing the
corresponding POS tag label for a word.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment