Downstream tasks with custom word boundaries should override this!
(cls, doc)
| 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 | |
| 861 | def hash_args(attr, args): |