def register_subword_function(subword_cls):
register_text_embedding = registry.get_register_func(SubwordFunction, '<STR_LIT>')<EOL>return register_text_embedding(subword_cls)<EOL>
Registers a new subword function.