MCPcopy
hub / github.com/modelscope/FunASR / parse

Method parse

fun_text_processing/text_normalization/token_parser.py:30–43  ·  view source on GitHub ↗

Main function. Implements grammar: A -> space F space F space F ... space Returns list of dictionaries

(self)

Source from the content-addressed store, hash-verified

28 self.index = 0
29
30 def parse(self) -> List[dict]:
31 """
32 Main function. Implements grammar:
33 A -> space F space F space F ... space
34
35 Returns list of dictionaries
36 """
37 l = list()
38 while self.parse_ws():
39 token = self.parse_token()
40 if not token:
41 break
42 l.append(token)
43 return l
44
45 def parse_token(self) -> Dict[str, Union[str, dict]]:
46 """

Callers 15

parse_token_valueMethod · 0.95
normalizeMethod · 0.80
_verbalizeMethod · 0.80
UuFunction · 0.80
GdFunction · 0.80
YmFunction · 0.80
zbFunction · 0.80
MgFunction · 0.80
hSFunction · 0.80
TSFunction · 0.80
GCFunction · 0.80
decoder.jsFile · 0.80

Calls 2

parse_wsMethod · 0.95
parse_tokenMethod · 0.95

Tested by

no test coverage detected