(text: Union[str, None], property)
| 112 | |
| 113 | @TEXT_POSTPROCESSORS.register_module() |
| 114 | def 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 |
nothing calls this directly
no test coverage detected