MCPcopy Create free account
hub / github.com/AlayaLab/Hive / process_text

Function process_text

pipeline/code/05_leaf_label_qwen.py:139–151  ·  view source on GitHub ↗
(texts: list[str])

Source from the content-addressed store, hash-verified

137 conversations.append(conversation)
138
139 def process_text(texts: list[str]):
140 results = []
141 for text in texts:
142 parts = text.split('assistant\n')
143 if len(parts) != 2:
144 return None
145 try:
146 index = int(parts[1])
147 results.append(index)
148 except ValueError:
149 logger.info(f"Current model output: {texts}")
150 return None
151 return results
152
153 if not conversations:
154 return results,[]

Callers 1

batch_queryFunction · 0.70

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected