pren icon indicating copy to clipboard operation
pren copied to clipboard

关于label预处理

Open developWmark opened this issue 3 years ago • 2 comments

非常抱歉再一次打扰你,我在看label预处理时,看到 image

-- get text label

   label = ' '.join(line_splits[1:])
    label = label.lower()

为什么每个字符中间要加一个空格,这和平常读取label的方法不太一样

developWmark avatar Dec 15 '21 03:12 developWmark

这样并不会把每个字符中间加一个空格,只是防止如果标签中本身有空格,这样能把空格恢复

RuijieJ avatar Dec 15 '21 08:12 RuijieJ

谢谢你的解答,get到了,self.lines返回的是一个列表

image

developWmark avatar Dec 15 '21 08:12 developWmark