bert
bert copied to clipboard
bert按中文字符分割好还是按中文词语分割好...
很蠢的问题,大家别笑我,run_classifier.py后面的代码还没看完,但是之前textcnn用字符分割效果不比词语分割差。。
提供的中文vocab基本是字符的
提供的中文vocab基本是字符的
刚刚看到后面了,确实是字符的。。
@monanahe 还是要看情况吧,很多时候,分词足够好的时候,textcnn词语效果会好一点(当然也看训练数据和应用场景了)。
最近一直没空读源码,想问下在bert中现在还有必要去停词、标点那些吗?此外请问下bert对unknown char 如何处理的
歪个楼,百度发布的ERNIE(没仔细看呢),似乎是 基于 分词 来训练的BERT?
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.