-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.cfg
95 lines (76 loc) · 1.61 KB
/
config.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[paths]
train = "./train.spacy"
dev = "./dev.spacy"
init_tok2vec = null
vectors = null
[corpora]
[corpora.train]
@readers = "spacy.Corpus.v1"
path = ${paths.train}
gold_preproc = true
[corpora.dev]
@readers = "spacy.Corpus.v1"
path = ${paths.dev}
gold_preproc = true
[system]
gpu_allocator = null
seed = 0
[nlp]
lang = "en"
pipeline = ["partial_ner"]
disabled = []
before_creation = null
after_creation = null
after_pipeline_creation = null
batch_size = 15
[nlp.tokenizer]
[components]
[components.partial_ner]
factory = "partial_ner"
padding_index = -1
unknown_index = -100
[components.partial_ner.model]
@architectures = "spacy-partial-tagger.PartialTagger.v1"
transformer_model_name = "distilroberta-base"
padding_index = ${components.partial_ner.padding_index}
[training]
dev_corpus = "corpora.dev"
train_corpus = "corpora.train"
seed = ${system.seed}
gpu_allocator = ${system.gpu_allocator}
accumulate_gradient = 1
max_steps = 20000
patience = 10000
eval_frequency = 1000
frozen_components = []
before_to_disk = null
[training.batcher]
@batchers = "spacy.batch_by_sequence.v1"
size = 15
get_length = null
[training.logger]
@loggers = "spacy.ConsoleLogger.v1"
progress_bar = false
[training.optimizer]
@optimizers = "Adam.v1"
beta1 = 0.9
beta2 = 0.999
L2_is_weight_decay = false
use_averages = false
grad_clip = 5.0
[training.optimizer.learn_rate]
@schedules = "slanted_triangular.v1"
max_rate = 0.00002
num_steps = ${training.max_steps}
cut_frac = 0.1
ratio = 16
t = -1
[training.score_weights]
ents_per_type = null
ents_f = 1.0
ents_p = 0.0
ents_r = 0.0
[pretraining]
[initialize]
[initialize.components]
[initialize.tokenizer]