{
  "id": 151641,
  "title": "Solution for AttributeError: module 'bert.tokenization'",
  "url": "/competitions/jigsaw-multilingual-toxic-comment-classification/discussion/151641",
  "author_name": "RY",
  "post_date": "2020-05-16T11:16:19.800000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Python Code :\nBERT_INIT_CHKPNT = 'C:/Users/ry/Desktop/BERT/uncased_L-12_H-768_A-12/bert_model.ckpt'\ntokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)</p>\n\n<p>Error: \nAttributeError: module 'bert.tokenization' has no attribute 'validate_case_matches_checkpoint'</p>\n\n<p>Solution : \nReplace  : tokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)\nBy : bert.bert_tokenization.validate_case_matches_checkpoint</p>",
  "messages": [
    {
      "id": 850135,
      "postDate": "2020-05-16T11:16:19.800Z",
      "content": "<p>Python Code :\nBERT_INIT_CHKPNT = 'C:/Users/ry/Desktop/BERT/uncased_L-12_H-768_A-12/bert_model.ckpt'\ntokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)</p>\n\n<p>Error: \nAttributeError: module 'bert.tokenization' has no attribute 'validate_case_matches_checkpoint'</p>\n\n<p>Solution : \nReplace  : tokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)\nBy : bert.bert_tokenization.validate_case_matches_checkpoint</p>",
      "rawMarkdown": "Python Code :\nBERT_INIT_CHKPNT = 'C:/Users/ry/Desktop/BERT/uncased_L-12_H-768_A-12/bert_model.ckpt'\ntokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)\n\nError: \nAttributeError: module 'bert.tokenization' has no attribute 'validate_case_matches_checkpoint'\n\nSolution : \nReplace  : tokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)\nBy : bert.bert_tokenization.validate_case_matches_checkpoint"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "850135": "Python Code :\nBERT_INIT_CHKPNT = 'C:/Users/ry/Desktop/BERT/uncased_L-12_H-768_A-12/bert_model.ckpt'\ntokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)\n\nError: \nAttributeError: module 'bert.tokenization' has no attribute 'validate_case_matches_checkpoint'\n\nSolution : \nReplace  : tokenization.validate_case_matches_checkpoint(True,BERT_INIT_CHKPNT)\nBy : bert.bert_tokenization.validate_case_matches_checkpoint"
  }
}