Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ASLP-lab/OSUM
/ width
Function
width
OSUM/tools/compute-cer.py:250–251 ·
view source on GitHub ↗
(string)
Source
from the content-addressed store, hash-verified
248
249
250
def
width(string):
251
return
sum(1 + (unicodedata.east_asian_width(c) in
"AFW"
)
for
c in string)
252
253
254
def
default_cluster(word):
Callers
1
compute-cer.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected