MCPcopy Create free account
hub / github.com/InternScience/SciReason / LLM4Mat_postprocessor

Function LLM4Mat_postprocessor

opencompass/datasets/LLM4Mat.py:114–122  ·  view source on GitHub ↗
(text: Union[str, None], property)

Source from the content-addressed store, hash-verified

112
113@TEXT_POSTPROCESSORS.register_module()
114def LLM4Mat_postprocessor(text: Union[str, None], property):
115 if text is None or not isinstance(text, str):
116 return ""
117 text = text.strip()
118 text = remove_think_tags(text)
119 if text == "":
120 return ""
121 result = extract_strict_value(text, property)
122 return result
123
124
125

Callers

nothing calls this directly

Calls 2

extract_strict_valueFunction · 0.85
remove_think_tagsFunction · 0.70

Tested by

no test coverage detected