MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / is_nl_query

Function is_nl_query

index/dense/utils.py:223–226  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

221
222
223def is_nl_query(query):
224 if any([query.lower().startswith(word) for word in QUESTION_WORD_LIST]):
225 return True
226 return False
227
228def format_nl_query(query):
229 query = query.replace("?", "")

Callers 1

format_nl_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected