MCPcopy Index your code
hub / github.com/modelscope/FunASR / get_event

Function get_event

funasr/utils/postprocess_utils.py:450–456  ·  view source on GitHub ↗

Get event. Args: s: TODO.

(s)

Source from the content-addressed store, hash-verified

448 return s[-1] if s[-1] in emo_set else None
449
450 def get_event(s):
451 """Get event.
452
453 Args:
454 s: TODO.
455 """
456 return s[0] if s[0] in event_set else None
457
458 s = s.replace("<|nospeech|><|Event_UNK|>", "❓")
459 for lang in lang_dict:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…