2020-08-04 13:09:37 +00:00
|
|
|
[paths]
|
|
|
|
train = ""
|
|
|
|
dev = ""
|
|
|
|
raw = null
|
|
|
|
init_tok2vec = null
|
|
|
|
|
|
|
|
[system]
|
|
|
|
seed = 0
|
|
|
|
use_pytorch_for_gpu_memory = false
|
|
|
|
|
2020-05-30 18:27:47 +00:00
|
|
|
[training]
|
2020-08-04 13:09:37 +00:00
|
|
|
seed = ${system:seed}
|
2020-05-30 18:27:47 +00:00
|
|
|
dropout = 0.1
|
2020-08-04 13:09:37 +00:00
|
|
|
init_tok2vec = ${paths:init_tok2vec}
|
|
|
|
vectors = null
|
|
|
|
accumulate_gradient = 1
|
|
|
|
max_steps = 0
|
2020-05-30 18:27:47 +00:00
|
|
|
max_epochs = 0
|
2020-08-04 13:09:37 +00:00
|
|
|
patience = 10000
|
2020-06-26 17:34:12 +00:00
|
|
|
eval_frequency = 200
|
2020-07-29 12:56:11 +00:00
|
|
|
score_weights = {"dep_las": 0.4, "ents_f": 0.4, "tag_acc": 0.2}
|
2020-08-04 21:39:19 +00:00
|
|
|
frozen_components = []
|
2020-08-04 13:09:37 +00:00
|
|
|
|
|
|
|
[training.train_corpus]
|
|
|
|
@readers = "spacy.Corpus.v1"
|
|
|
|
path = ${paths:train}
|
|
|
|
gold_preproc = true
|
|
|
|
max_length = 0
|
|
|
|
limit = 0
|
|
|
|
|
|
|
|
[training.dev_corpus]
|
|
|
|
@readers = "spacy.Corpus.v1"
|
|
|
|
path = ${paths:dev}
|
|
|
|
gold_preproc = ${training.read_train:gold_preproc}
|
|
|
|
max_length = 0
|
|
|
|
limit = 0
|
|
|
|
|
|
|
|
[training.batcher]
|
2020-09-03 15:30:41 +00:00
|
|
|
@batchers = "spacy.batch_by_words.v1"
|
2020-06-03 08:04:16 +00:00
|
|
|
discard_oversize = false
|
2020-08-04 13:09:37 +00:00
|
|
|
tolerance = 0.2
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-08-04 13:09:37 +00:00
|
|
|
[training.batcher.size]
|
2020-05-30 18:27:47 +00:00
|
|
|
@schedules = "compounding.v1"
|
2020-07-29 12:26:44 +00:00
|
|
|
start = 100
|
2020-05-30 18:27:47 +00:00
|
|
|
stop = 1000
|
|
|
|
compound = 1.001
|
|
|
|
|
2020-06-03 08:04:16 +00:00
|
|
|
[training.optimizer]
|
2020-05-30 18:27:47 +00:00
|
|
|
@optimizers = "Adam.v1"
|
|
|
|
beta1 = 0.9
|
|
|
|
beta2 = 0.999
|
|
|
|
L2_is_weight_decay = true
|
|
|
|
L2 = 0.01
|
|
|
|
grad_clip = 1.0
|
2020-06-26 21:50:22 +00:00
|
|
|
use_averages = false
|
2020-05-30 18:27:47 +00:00
|
|
|
eps = 1e-8
|
2020-07-29 12:26:44 +00:00
|
|
|
learn_rate = 0.001
|
2020-05-30 18:27:47 +00:00
|
|
|
|
|
|
|
[nlp]
|
|
|
|
lang = "en"
|
2020-07-29 12:26:44 +00:00
|
|
|
load_vocab_data = false
|
|
|
|
pipeline = ["tok2vec", "ner", "tagger", "parser"]
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[nlp.tokenizer]
|
|
|
|
@tokenizers = "spacy.Tokenizer.v1"
|
2020-07-11 11:03:53 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[nlp.lemmatizer]
|
|
|
|
@lemmatizers = "spacy.Lemmatizer.v1"
|
|
|
|
|
|
|
|
[components]
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.tok2vec]
|
|
|
|
factory = "tok2vec"
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.ner]
|
2020-05-30 18:27:47 +00:00
|
|
|
factory = "ner"
|
2020-06-12 00:02:07 +00:00
|
|
|
learn_tokens = false
|
|
|
|
min_action_freq = 1
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.tagger]
|
2020-05-30 18:27:47 +00:00
|
|
|
factory = "tagger"
|
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.parser]
|
2020-05-30 18:27:47 +00:00
|
|
|
factory = "parser"
|
2020-06-12 00:02:07 +00:00
|
|
|
learn_tokens = false
|
2020-06-26 17:34:12 +00:00
|
|
|
min_action_freq = 30
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.tagger.model]
|
2020-05-30 18:27:47 +00:00
|
|
|
@architectures = "spacy.Tagger.v1"
|
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.tagger.model.tok2vec]
|
|
|
|
@architectures = "spacy.Tok2VecListener.v1"
|
|
|
|
width = ${components.tok2vec.model.encode:width}
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.parser.model]
|
2020-05-30 18:27:47 +00:00
|
|
|
@architectures = "spacy.TransitionBasedParser.v1"
|
|
|
|
nr_feature_tokens = 8
|
|
|
|
hidden_width = 128
|
2020-06-26 17:34:12 +00:00
|
|
|
maxout_pieces = 2
|
|
|
|
use_upper = true
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.parser.model.tok2vec]
|
|
|
|
@architectures = "spacy.Tok2VecListener.v1"
|
|
|
|
width = ${components.tok2vec.model.encode:width}
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.ner.model]
|
2020-05-30 18:27:47 +00:00
|
|
|
@architectures = "spacy.TransitionBasedParser.v1"
|
|
|
|
nr_feature_tokens = 3
|
|
|
|
hidden_width = 128
|
2020-06-26 17:34:12 +00:00
|
|
|
maxout_pieces = 2
|
|
|
|
use_upper = true
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.ner.model.tok2vec]
|
|
|
|
@architectures = "spacy.Tok2VecListener.v1"
|
|
|
|
width = ${components.tok2vec.model.encode:width}
|
|
|
|
|
|
|
|
[components.tok2vec.model]
|
|
|
|
@architectures = "spacy.Tok2Vec.v1"
|
|
|
|
|
|
|
|
[components.tok2vec.model.embed]
|
|
|
|
@architectures = "spacy.MultiHashEmbed.v1"
|
|
|
|
width = ${components.tok2vec.model.encode:width}
|
|
|
|
rows = 2000
|
|
|
|
also_embed_subwords = true
|
|
|
|
also_use_static_vectors = false
|
2020-05-30 18:27:47 +00:00
|
|
|
|
2020-07-29 12:26:44 +00:00
|
|
|
[components.tok2vec.model.encode]
|
|
|
|
@architectures = "spacy.MaxoutWindowEncoder.v1"
|
|
|
|
width = 96
|
2020-06-26 17:34:12 +00:00
|
|
|
depth = 4
|
2020-05-30 18:27:47 +00:00
|
|
|
window_size = 1
|
|
|
|
maxout_pieces = 3
|