2020-05-30 18:27:47 +00:00
|
|
|
# Training hyper-parameters and additional features.
|
|
|
|
[training]
|
|
|
|
# Whether to train on sequences with 'gold standard' sentence boundaries
|
|
|
|
# and tokens. If you set this to true, take care to ensure your run-time
|
|
|
|
# data is passed in sentence-by-sentence via some prior preprocessing.
|
|
|
|
gold_preproc = false
|
|
|
|
# Limitations on training document length or number of examples.
|
2020-06-26 17:34:12 +00:00
|
|
|
max_length = 5000
|
2020-05-30 18:27:47 +00:00
|
|
|
limit = 0
|
|
|
|
# Data augmentation
|
|
|
|
orth_variant_level = 0.0
|
|
|
|
dropout = 0.1
|
|
|
|
# Controls early-stopping. 0 or -1 mean unlimited.
|
|
|
|
patience = 1600
|
|
|
|
max_epochs = 0
|
|
|
|
max_steps = 20000
|
2020-06-26 17:34:12 +00:00
|
|
|
eval_frequency = 200
|
2020-05-30 18:27:47 +00:00
|
|
|
# Other settings
|
|
|
|
seed = 0
|
|
|
|
accumulate_gradient = 1
|
|
|
|
use_pytorch_for_gpu_memory = false
|
|
|
|
# Control how scores are printed and checkpoints are evaluated.
|
2020-07-29 12:26:44 +00:00
|
|
|
eval_batch_size = 128
|
2020-07-29 12:56:11 +00:00
|
|
|
score_weights = {"dep_las": 0.4, "ents_f": 0.4, "tag_acc": 0.2}
|
2020-05-30 18:27:47 +00:00
|
|
|
init_tok2vec = null
|
2020-06-03 08:04:16 +00:00
|
|
|
discard_oversize = false
|
2020-07-10 17:59:12 +00:00
|
|
|
batch_by = "words"
|
|
|
|
raw_text = null
|
|
|
|
tag_map = null
|
2020-07-29 12:26:44 +00:00
|
|
|
vectors = null
|
|
|
|
base_model = null
|
|
|
|
morph_rules = null
|
2020-05-30 18:27:47 +00:00
|
|
|
|
|
|
|
[training.batch_size]
|
|
|
|
@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
|