MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / count_words

Method count_words

test/general/lm_eval/base.py:856–858  ·  view source on GitHub ↗

Downstream tasks with custom word boundaries should override this!

(cls, doc)

Source from the content-addressed store, hash-verified

854
855 @classmethod
856 def count_words(cls, doc):
857 """Downstream tasks with custom word boundaries should override this!"""
858 return len(re.split(r"\s+", doc))
859
860
861def hash_args(attr, args):

Callers 1

process_resultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected