2020-08-04 16:09:37 +03:00
|
|
|
[paths]
|
2020-09-29 23:33:46 +03:00
|
|
|
train = null
|
|
|
|
dev = null
|
2020-09-29 17:47:55 +03:00
|
|
|
vectors = null
|
|
|
|
init_tok2vec = null
|
2020-08-04 16:09:37 +03:00
|
|
|
|
|
|
|
[system]
|
|
|
|
seed = 0
|
2020-09-19 02:17:02 +03:00
|
|
|
gpu_allocator = null
|
2020-08-04 16:09:37 +03:00
|
|
|
|
2020-07-22 14:42:59 +03:00
|
|
|
[nlp]
|
|
|
|
lang = null
|
2020-10-01 23:27:37 +03:00
|
|
|
# List of pipeline component names, in order. The names should correspond to
|
|
|
|
# components defined in the [components block]
|
2020-07-22 14:42:59 +03:00
|
|
|
pipeline = []
|
2020-10-01 23:27:37 +03:00
|
|
|
# Components that are loaded but disabled by default
|
2020-08-28 16:20:14 +03:00
|
|
|
disabled = []
|
2020-10-01 23:27:37 +03:00
|
|
|
# Optional callbacks to modify the nlp object before it's initialized, after
|
|
|
|
# it's created and after the pipeline has been set up
|
2020-08-05 20:47:54 +03:00
|
|
|
before_creation = null
|
|
|
|
after_creation = null
|
|
|
|
after_pipeline_creation = null
|
2020-12-09 11:13:26 +03:00
|
|
|
# Default batch size to use with nlp.pipe and nlp.evaluate
|
|
|
|
batch_size = 1000
|
2020-07-22 14:42:59 +03:00
|
|
|
|
|
|
|
[nlp.tokenizer]
|
|
|
|
@tokenizers = "spacy.Tokenizer.v1"
|
|
|
|
|
2020-10-01 23:27:37 +03:00
|
|
|
# The pipeline components and their models
|
2020-07-22 14:42:59 +03:00
|
|
|
[components]
|
|
|
|
|
2020-09-17 12:38:59 +03:00
|
|
|
# Readers for corpora like dev and train.
|
|
|
|
[corpora]
|
2020-08-04 16:09:37 +03:00
|
|
|
|
2020-09-17 12:38:59 +03:00
|
|
|
[corpora.train]
|
2020-08-04 16:09:37 +03:00
|
|
|
@readers = "spacy.Corpus.v1"
|
2020-08-20 12:20:58 +03:00
|
|
|
path = ${paths.train}
|
2020-08-04 16:09:37 +03: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 16:31:21 +03:00
|
|
|
max_length = 0
|
2020-08-04 16:09:37 +03:00
|
|
|
# Limitation on number of training examples
|
|
|
|
limit = 0
|
2020-09-28 04:03:27 +03:00
|
|
|
# Apply some simply data augmentation, where we replace tokens with variations.
|
|
|
|
# This is especially useful for punctuation and case replacement, to help
|
2020-10-01 23:27:37 +03:00
|
|
|
# generalize beyond corpora that don't/only have smart quotes etc.
|
2020-09-30 00:02:40 +03:00
|
|
|
augmenter = null
|
2020-08-04 16:09:37 +03:00
|
|
|
|
2020-09-17 12:38:59 +03:00
|
|
|
[corpora.dev]
|
2020-08-04 16:09:37 +03:00
|
|
|
@readers = "spacy.Corpus.v1"
|
2020-08-20 12:20:58 +03:00
|
|
|
path = ${paths.dev}
|
2020-08-04 16:09:37 +03: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 16:31:21 +03:00
|
|
|
max_length = 0
|
2020-08-04 16:09:37 +03:00
|
|
|
# Limitation on number of training examples
|
|
|
|
limit = 0
|
2020-10-01 23:27:37 +03:00
|
|
|
# Optional callback for data augmentation
|
2020-09-30 21:18:45 +03:00
|
|
|
augmenter = null
|
2020-08-04 16:09:37 +03:00
|
|
|
|
2020-09-17 12:38:59 +03:00
|
|
|
# Training hyper-parameters and additional features.
|
|
|
|
[training]
|
|
|
|
seed = ${system.seed}
|
2020-09-19 02:17:02 +03:00
|
|
|
gpu_allocator = ${system.gpu_allocator}
|
2020-09-17 12:38:59 +03:00
|
|
|
dropout = 0.1
|
|
|
|
accumulate_gradient = 1
|
2022-01-05 11:16:40 +03:00
|
|
|
# Controls early-stopping, i.e., the number of steps to continue without
|
|
|
|
# improvement before stopping. 0 disables early stopping.
|
2020-09-17 12:38:59 +03:00
|
|
|
patience = 1600
|
2021-04-08 11:08:04 +03:00
|
|
|
# Number of epochs. 0 means unlimited. If >= 0, train corpus is loaded once in
|
|
|
|
# memory and shuffled within the training loop. -1 means stream train corpus
|
|
|
|
# rather than loading in memory with no shuffling within the training loop.
|
2020-09-17 12:38:59 +03:00
|
|
|
max_epochs = 0
|
2022-01-05 11:16:40 +03:00
|
|
|
# Maximum number of update steps to train for. 0 means an unlimited number of steps.
|
2020-09-17 12:38:59 +03:00
|
|
|
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 = []
|
2021-04-26 17:53:53 +03:00
|
|
|
# Names of pipeline components that should set annotations during training
|
|
|
|
annotating_components = []
|
2020-09-17 12:38:59 +03:00
|
|
|
# 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 13:40:25 +03:00
|
|
|
# Optional callback before nlp object is saved to disk after training
|
|
|
|
before_to_disk = null
|
2022-11-23 19:54:58 +03:00
|
|
|
# Optional callback that is invoked at the start of each training step
|
|
|
|
before_update = null
|
2020-09-17 12:38:59 +03:00
|
|
|
|
|
|
|
[training.logger]
|
|
|
|
@loggers = "spacy.ConsoleLogger.v1"
|
|
|
|
|
2020-08-04 16:09:37 +03:00
|
|
|
[training.batcher]
|
2020-09-03 18:30:41 +03:00
|
|
|
@batchers = "spacy.batch_by_words.v1"
|
2020-07-22 14:42:59 +03:00
|
|
|
discard_oversize = false
|
2020-08-04 16:09:37 +03:00
|
|
|
tolerance = 0.2
|
|
|
|
|
|
|
|
[training.batcher.size]
|
|
|
|
@schedules = "compounding.v1"
|
|
|
|
start = 100
|
|
|
|
stop = 1000
|
|
|
|
compound = 1.001
|
2020-07-22 14:42:59 +03: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 16:31:21 +03:00
|
|
|
learn_rate = 0.001
|
2020-09-28 12:56:14 +03:00
|
|
|
|
2020-10-01 23:27:37 +03:00
|
|
|
# These settings are used when nlp.initialize() is called (typically before
|
|
|
|
# training or pretraining). Components and the tokenizer can each define their
|
|
|
|
# own arguments via their initialize methods that are populated by the config.
|
|
|
|
# This lets them gather data resources, build label sets etc.
|
2020-09-28 12:56:14 +03:00
|
|
|
[initialize]
|
2020-09-29 17:47:55 +03:00
|
|
|
vectors = ${paths.vectors}
|
2020-09-28 12:56:14 +03:00
|
|
|
# Extra resources for transfer-learning or pseudo-rehearsal
|
|
|
|
init_tok2vec = ${paths.init_tok2vec}
|
2020-10-01 23:27:37 +03:00
|
|
|
# Data and lookups for vocabulary
|
|
|
|
vocab_data = null
|
|
|
|
lookups = null
|
2020-09-29 17:47:55 +03:00
|
|
|
# Arguments passed to the tokenizer's initialize method
|
|
|
|
tokenizer = {}
|
2020-10-01 23:27:37 +03:00
|
|
|
# Arguments for initialize methods of the components (keyed by component)
|
2020-09-29 17:47:55 +03:00
|
|
|
components = {}
|
2021-01-12 13:29:31 +03:00
|
|
|
before_init = null
|
|
|
|
after_init = null
|