bert icon indicating copy to clipboard operation
bert copied to clipboard

bert按中文字符分割好还是按中文词语分割好...

Open monanahe opened this issue 8 years ago • 6 comments

很蠢的问题,大家别笑我,run_classifier.py后面的代码还没看完,但是之前textcnn用字符分割效果不比词语分割差。。

monanahe avatar Nov 16 '18 08:11 monanahe

提供的中文vocab基本是字符的

shuaihhx avatar Nov 16 '18 09:11 shuaihhx

提供的中文vocab基本是字符的

刚刚看到后面了,确实是字符的。。

monanahe avatar Nov 16 '18 09:11 monanahe

@monanahe 还是要看情况吧,很多时候,分词足够好的时候,textcnn词语效果会好一点(当然也看训练数据和应用场景了)。

Continue7777 avatar Nov 18 '18 09:11 Continue7777

最近一直没空读源码,想问下在bert中现在还有必要去停词、标点那些吗?此外请问下bert对unknown char 如何处理的

mushan09 avatar Dec 07 '18 03:12 mushan09

歪个楼,百度发布的ERNIE(没仔细看呢),似乎是 基于 分词 来训练的BERT?

BerenLuthien avatar Mar 21 '19 23:03 BerenLuthien

in https://github.com/google-research/bert/blob/master/multilingual.md

Because Chinese (and Japanese Kanji and Korean Hanja) does not have whitespace characters, we add 
spaces around every character in the CJK Unicode range before applying WordPiece. This means that 
Chinese is effectively character-tokenized. Note that the CJK Unicode block only includes Chinese-origin
 characters and does not include Hangul Korean or Katakana/Hiragana Japanese, which are tokenized 
with whitespace+WordPiece like all other languages.

RayXu14 avatar Apr 16 '19 07:04 RayXu14