Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
def
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
42
def
get_parameter_details(net):
43
num_params = 0
Callers
1
_process_text_line
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected