Skip to content

Commit 6e34bf9

Browse files
committed
fix : add "none" option to choose-entity in quaero
1 parent e8a4444 commit 6e34bf9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

promptsource/templates/meczifho/QuaeroFrenchMed/templates.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ templates:
129129
\ type entre \"partie du corps\", \"\xEAtre vivant\", \"sympt\xF4me ou maladie\"\
130130
, \"proc\xE9dure m\xE9dicale\", \"composant chimique ou m\xE9dicament\", \"\
131131
zone g\xE9ographique\", \"physiologie\", \"ph\xE9nom\xE8ne\", \"objet\" ou \"\
132-
appareil ? \n\n{% for idx in range(words|length) %}{{ words[idx] }}{% if idx+1\
132+
appareil\" ? \n\n{% for idx in range(words|length) %}{{ words[idx] }}{% if idx+1\
133133
\ < words|length %}{% if (words[idx+1] not in \"])'/\u2019.,%-\u20AC$\xA3\\\"\
134134
)\" and words[idx][-1] not in \"'[(/\u2019-\") %} {% endif %}{% endif %}{% endfor\
135135
\ %}{% endif %}\n||| {% if entity_types[rand_idx] == 1 %}partie du corps{%elif\
@@ -138,7 +138,8 @@ templates:
138138
dure m\xE9dicale{%elif entity_types[rand_idx] == 5 %}composant chimique ou m\xE9\
139139
dicament{%elif entity_types[rand_idx] == 6 %}zone g\xE9ographique{%elif entity_types[rand_idx]\
140140
\ == 7 %}physiologie{%elif entity_types[rand_idx] == 8 %}ph\xE9nom\xE8ne{%elif\
141-
\ entity_types[rand_idx] == 9 %}objet{%elif entity_types[rand_idx] == 10 %}appareil{%endif%}"
141+
\ entity_types[rand_idx] == 9 %}objet{%elif entity_types[rand_idx] == 10 %}appareil\
142+
\ {% else %}none{%endif%}"
142143
metadata: !TemplateMetadata
143144
choices_in_prompt: true
144145
languages:

0 commit comments

Comments
 (0)