<reponame>OpenNLPhub/MRC_NER
import os
from os.path import join
cwd=os.getcwd()
''' Path config'''

BERT_BASE_CHINESE=join(cwd,'data','static','bert-base-chinese')
BERT_BASE_ENGLISH=join(cwd,'data','static','bert-base-uncased')

Bert_Pretrained_Model_Map = {
    'bert-base-uncased': BERT_BASE_ENGLISH,
    'bert-base-chinese': BERT_BASE_CHINESE
}

#可以在这里设定自己定义的BertConfig
class OwnBertConfig():
    hidden_size=0
    emb_size=0
    vocab_size=0


class TransformerConfig():
    d_model=512
    d_ff=2048
    h=8
    dropout=0.1
    N=6
import os
from os.path import join
cwd=os.getcwd()
''' Path config'''

BERT_BASE_CHINESE=join(cwd,'data','static','bert-base-chinese')
BERT_BASE_ENGLISH=join(cwd,'data','static','bert-base-uncased')

Bert_Pretrained_Model_Map = {
    'bert-base-uncased': BERT_BASE_ENGLISH,
    'bert-base-chinese': BERT_BASE_CHINESE
}

#可以在这里设定自己定义的BertConfig
class OwnBertConfig():
    hidden_size=0
    emb_size=0
    vocab_size=0


class TransformerConfig():
    d_model=512
    d_ff=2048
    h=8
    dropout=0.1
    N=6
Path config #可以在这里设定自己定义的BertConfig