Skip to content

AttributeError: 'NoneType' object has no attribute 'config' #14

@KangChou

Description

@KangChou
  • UBUNTU16.04
  • PYTHON3.6

# of word in train: 55304: 
# of n-gram in memory: 71499
Traceback (most recent call last):
  File "wmseg_main.py", line 677, in <module>
    main()
  File "wmseg_main.py", line 667, in main
    train(args)
  File "wmseg_main.py", line 101, in train
    seg_model = WMSeg(word2id, gram2id, label_map, hpara, args)
  File "/data/my_project/nlp_text/WMSeg/wmseg_model.py", line 98, in __init__
    self.hpara['config'] = self.bert.config
AttributeError: 'NoneType' object has no attribute 'config'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions