2020-08-04 13:09:37 +00:00
|
|
|
[paths]
|
|
|
|
train = ""
|
|
|
|
dev = ""
|
2020-09-29 14:47:55 +00:00
|
|
|
vectors = null
|
2020-09-28 10:05:23 +00:00
|
|
|
vocab_data = null
|
2020-09-29 14:47:55 +00:00
|
|
|
init_tok2vec = null
|
2020-08-04 13:09:37 +00:00
|
|
|
|
|
|
|
[system]
|
|
|
|
seed = 0
|
2020-09-18 23:17:02 +00:00
|
|
|
gpu_allocator = null
|
2020-08-04 13:09:37 +00:00
|
|
|
|
2020-07-22 11:42:59 +00:00
|
|
|
[nlp]
|
|
|
|
lang = null
|
|
|
|
pipeline = []
|
2020-08-28 13:20:14 +00:00
|
|
|
disabled = []
|
2020-08-05 17:47:54 +00:00
|
|
|
before_creation = null
|
|
|
|
after_creation = null
|
|
|
|
after_pipeline_creation = null
|
2020-07-22 11:42:59 +00:00
|
|
|
|
|
|
|
[nlp.tokenizer]
|
|
|
|
@tokenizers = "spacy.Tokenizer.v1"
|
|
|
|
|
|
|
|
[components]
|
|
|
|
|
2020-09-17 09:38:59 +00:00
|
|
|
# Readers for corpora like dev and train.
|
|
|
|
[corpora]
|
2020-08-04 13:09:37 +00:00
|
|
|
|
2020-09-17 09:38:59 +00:00
|
|
|
[corpora.train]
|
2020-08-04 13:09:37 +00:00
|
|
|
@readers = "spacy.Corpus.v1"
|
2020-08-20 09:20:58 +00:00
|
|
|
path = ${paths.train}
|
2020-08-04 13:09:37 +00:00
|
|
|
# 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
|
2020-09-08 13:31:21 +00:00
|
|
|
max_length = 0
|
2020-08-04 13:09:37 +00:00
|
|
|
# Limitation on number of training examples
|
|
|
|
limit = 0
|
2020-09-28 01:03:27 +00:00
|
|
|
# Apply some simply data augmentation, where we replace tokens with variations.
|
|
|
|
# This is especially useful for punctuation and case replacement, to help
|
|
|
|
# generalize beyond corpora that don't have smart-quotes, or only have smart
|
|
|
|
# quotes, etc.
|
|
|
|
augmenter = {"@augmenters": "spacy.orth_variants.v1", "level": 0.1, "lower": 0.5}
|
2020-08-04 13:09:37 +00:00
|
|
|
|
2020-09-17 09:38:59 +00:00
|
|
|
[corpora.dev]
|
2020-08-04 13:09:37 +00:00
|
|
|
@readers = "spacy.Corpus.v1"
|
2020-08-20 09:20:58 +00:00
|
|
|
path = ${paths.dev}
|
2020-08-04 13:09:37 +00:00
|
|
|
# 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
|
2020-09-08 13:31:21 +00:00
|
|
|
max_length = 0
|
2020-08-04 13:09:37 +00:00
|
|
|
# Limitation on number of training examples
|
|
|
|
limit = 0
|
|
|
|
|
2020-09-17 09:38:59 +00:00
|
|
|
# Training hyper-parameters and additional features.
|
|
|
|
[training]
|
|
|
|
seed = ${system.seed}
|
2020-09-18 23:17:02 +00:00
|
|
|
gpu_allocator = ${system.gpu_allocator}
|
2020-09-17 09:38:59 +00:00
|
|
|
dropout = 0.1
|
|
|
|
accumulate_gradient = 1
|
|
|
|
# Controls early-stopping. 0 or -1 mean unlimited.
|
|
|
|
patience = 1600
|
|
|
|
max_epochs = 0
|
|
|
|
max_steps = 20000
|
|
|
|
eval_frequency = 200
|
|
|
|
# Control how scores are printed and checkpoints are evaluated.
|
|
|
|
score_weights = {}
|
|
|
|
# Names of pipeline components that shouldn't be updated during training
|
|
|
|
frozen_components = []
|
|
|
|
# Location in the config where the dev corpus is defined
|
|
|
|
dev_corpus = "corpora.dev"
|
|
|
|
# Location in the config where the train corpus is defined
|
|
|
|
train_corpus = "corpora.train"
|
2020-09-24 10:40:25 +00:00
|
|
|
# Optional callback before nlp object is saved to disk after training
|
|
|
|
before_to_disk = null
|
2020-09-17 09:38:59 +00:00
|
|
|
|
|
|
|
[training.logger]
|
|
|
|
@loggers = "spacy.ConsoleLogger.v1"
|
|
|
|
|
2020-08-04 13:09:37 +00:00
|
|
|
[training.batcher]
|
2020-09-03 15:30:41 +00:00
|
|
|
@batchers = "spacy.batch_by_words.v1"
|
2020-07-22 11:42:59 +00:00
|
|
|
discard_oversize = false
|
2020-08-04 13:09:37 +00:00
|
|
|
tolerance = 0.2
|
|
|
|
|
|
|
|
[training.batcher.size]
|
|
|
|
@schedules = "compounding.v1"
|
|
|
|
start = 100
|
|
|
|
stop = 1000
|
|
|
|
compound = 1.001
|
2020-07-22 11:42:59 +00:00
|
|
|
|
|
|
|
[training.optimizer]
|
|
|
|
@optimizers = "Adam.v1"
|
|
|
|
beta1 = 0.9
|
|
|
|
beta2 = 0.999
|
|
|
|
L2_is_weight_decay = true
|
|
|
|
L2 = 0.01
|
|
|
|
grad_clip = 1.0
|
|
|
|
use_averages = false
|
|
|
|
eps = 1e-8
|
2020-09-08 13:31:21 +00:00
|
|
|
learn_rate = 0.001
|
2020-09-28 09:56:14 +00:00
|
|
|
|
2020-09-28 10:00:23 +00:00
|
|
|
# The 'initialize' step is run before training or pretraining. Components and
|
2020-09-29 14:47:55 +00:00
|
|
|
# the tokenizer can each define their own arguments via their .initialize
|
|
|
|
# methods that are populated by the config. This lets them gather resources like
|
|
|
|
# lookup tables and build label sets, construct vocabularies, etc.
|
2020-09-28 09:56:14 +00:00
|
|
|
[initialize]
|
2020-09-29 14:47:55 +00:00
|
|
|
vocab_data = ${paths.vocab_data}
|
2020-09-28 09:56:14 +00:00
|
|
|
lookups = null
|
2020-09-29 14:47:55 +00:00
|
|
|
vectors = ${paths.vectors}
|
2020-09-28 09:56:14 +00:00
|
|
|
# Extra resources for transfer-learning or pseudo-rehearsal
|
|
|
|
init_tok2vec = ${paths.init_tok2vec}
|
2020-09-29 14:47:55 +00:00
|
|
|
# Arguments passed to the tokenizer's initialize method
|
|
|
|
tokenizer = {}
|
|
|
|
# Arguments passed to the initialize methods of the components (keyed by component name)
|
|
|
|
components = {}
|