MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / str2idx

Function str2idx

models/TextEnhancement.py:36–40  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

34
35
36def str2idx(text):
37 idx = []
38 for t in text:
39 idx.append(CommonWords.index(t) if t in CommonWords else 3484) #3955
40 return idx
41
42def get_parameter_details(net):
43 num_params = 0

Callers 1

_process_text_lineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected