mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 19:06:33 +03:00
15 lines
389 B
Python
15 lines
389 B
Python
|
from paddle.trainer_config_helpers import *
|
||
|
|
||
|
define_py_data_sources2(train_list='train.list',
|
||
|
test_list='test.list',
|
||
|
module="dataprovider",
|
||
|
obj="process")
|
||
|
|
||
|
settings(
|
||
|
batch_size=128,
|
||
|
learning_rate=2e-3,
|
||
|
learning_method=AdamOptimizer(),
|
||
|
regularization=L2Regularization(8e-4),
|
||
|
gradient_clipping_threshold=25
|
||
|
)
|