-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.0.5
- Loading branch information
Showing
108 changed files
with
6,344 additions
and
2,579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
include README.MD | ||
include LICENSE | ||
include requirements.txt | ||
recursive-include deeppavlov/configs *.json | ||
recursive-include deeppavlov *.json | ||
recursive-include deeppavlov *.md | ||
recursive-include utils *.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if __name__ == '__main__': | ||
from .deep import main | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
deeppavlov/configs/morpho_tagger/UD2.0/hu/morpho_hu_predict.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"dataset_reader": { | ||
"name": "morphotagger_dataset_reader", | ||
"data_path": "UD2.0_source", | ||
"language": "hu", "data_types": ["test"] | ||
}, | ||
"dataset_iterator": { | ||
"name": "morphotagger_dataset" | ||
}, | ||
"chainer": { | ||
"in": ["x"], | ||
"in_y": ["y"], | ||
"pipe": [ | ||
{ | ||
"id": "lowercase_preprocessor", | ||
"name": "lowercase_preprocessor", | ||
"in": ["x"], | ||
"out": ["x_processed"] | ||
}, | ||
{ | ||
"id": "tag_vocab", | ||
"name": "default_vocab", | ||
"level": "token", | ||
"special_tokens": ["PAD", "BEGIN", "END"], | ||
"load_path": "morpho_tagger/UD2.0/hu/tag.dict", | ||
"save_path": "morpho_tagger/UD2.0/hu/tag.dict" | ||
}, | ||
{ | ||
"id": "char_vocab", | ||
"name": "default_vocab", | ||
"min_freq": 3, | ||
"special_tokens": ["PAD", "BEGIN", "END"], | ||
"load_path": "morpho_tagger/UD2.0/hu/char.dict", | ||
"save_path": "morpho_tagger/UD2.0/hu/char.dict" | ||
}, | ||
{ | ||
"in": ["x_processed"], | ||
"in_y": ["y"], | ||
"out": ["y_predicted"], | ||
"name": "morpho_tagger", | ||
"main": true, | ||
"save_path": "morpho_tagger/UD2.0/hu/model.hdf5", | ||
"load_path": "morpho_tagger/UD2.0/hu/model.hdf5", | ||
"tags": "#tag_vocab", | ||
"symbols": "#char_vocab", | ||
"verbose": 1, | ||
"char_embeddings_size": 32, "char_window_size": [1, 2, 3, 4, 5, 6, 7], | ||
"word_lstm_units": 128, "conv_dropout": 0.0, "char_conv_layers": 1, | ||
"char_highway_layers": 1, "highway_dropout": 0.0, "word_lstm_layers": 1, | ||
"char_filter_multiple": 50, "intermediate_dropout": 0.0, | ||
"word_dropout": 0.2, "lstm_dropout": 0.2, "regularizer": 0.01 | ||
}, | ||
{ | ||
"in": ["x", "y_predicted"], | ||
"out": ["y_prettified"], | ||
"name": "tag_output_prettifier", | ||
"end": "\n" | ||
} | ||
], | ||
"out": ["y_prettified"] | ||
}, | ||
"predict": { | ||
"batch_size": 32, | ||
"outfile": "results/ud_hu_test.res" | ||
}, | ||
"metadata": { | ||
"download": [ | ||
"http://lnsigo.mipt.ru/export/deeppavlov_data/morpho_tagger.tar.gz", | ||
{ | ||
"url": "http://lnsigo.mipt.ru/export/datasets/UD2.0_source/hu.tar.gz", | ||
"subdir": "UD2.0_source/hu" | ||
} | ||
], | ||
"telegram_utils": "MorphoTaggerModel" | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
deeppavlov/configs/morpho_tagger/UD2.0/hu/morpho_hu_train.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"dataset_reader": { | ||
"name": "morphotagger_dataset_reader", | ||
"data_path": "UD2.0_source", | ||
"language": "hu", "data_types": ["train", "dev", "test"] | ||
}, | ||
"dataset_iterator": { | ||
"name": "morphotagger_dataset" | ||
}, | ||
"chainer": { | ||
"in": ["x"], | ||
"in_y": ["y"], | ||
"pipe": [ | ||
{ | ||
"id": "lowercase_preprocessor", | ||
"name": "lowercase_preprocessor", | ||
"in": ["x"], | ||
"out": ["x_processed"] | ||
}, | ||
{ | ||
"id": "tag_vocab", | ||
"name": "default_vocab", | ||
"fit_on": ["y"], | ||
"level": "token", | ||
"special_tokens": ["PAD", "BEGIN", "END"], | ||
"save_path": "morpho_tagger/UD2.0/hu/tag.dict", | ||
"load_path": "morpho_tagger/UD2.0/hu/tag.dict" | ||
}, | ||
{ | ||
"id": "char_vocab", | ||
"name": "default_vocab", | ||
"min_freq": 3, | ||
"fit_on": ["x_processed"], | ||
"special_tokens": ["PAD", "BEGIN", "END"], | ||
"level": "char", | ||
"save_path": "morpho_tagger/UD2.0/hu/char.dict", | ||
"load_path": "morpho_tagger/UD2.0/hu/char.dict" | ||
}, | ||
{ | ||
"in": ["x_processed"], | ||
"in_y": ["y"], | ||
"out": ["y_predicted"], | ||
"name": "morpho_tagger", | ||
"main": true, | ||
"save_path": "morpho_tagger/UD2.0/hu/model.hdf5", | ||
"load_path": "morpho_tagger/UD2.0/hu/model.hdf5", | ||
"tags": "#tag_vocab", | ||
"symbols": "#char_vocab", | ||
"verbose": 1, | ||
"char_embeddings_size": 32, "char_window_size": [1, 2, 3, 4, 5, 6, 7], | ||
"word_lstm_units": 128, "conv_dropout": 0.0, "char_conv_layers": 1, | ||
"char_highway_layers": 1, "highway_dropout": 0.0, "word_lstm_layers": 1, | ||
"char_filter_multiple": 50, "intermediate_dropout": 0.0, "word_dropout": 0.2, | ||
"lstm_dropout": 0.3, "regularizer": 0.01, "lm_dropout": 0.3 | ||
} | ||
], | ||
"out": ["y_predicted"] | ||
}, | ||
"train": { | ||
"epochs": 50, | ||
"batch_size": 32, | ||
|
||
"metrics": ["per_token_accuracy"], | ||
"validation_patience": 10, | ||
"val_every_n_epochs": 1, | ||
"log_every_n_epochs": 1 | ||
}, | ||
"metadata": { | ||
"download": [ | ||
"http://lnsigo.mipt.ru/export/deeppavlov_data/morpho_tagger.tar.gz", | ||
{ | ||
"url": "http://lnsigo.mipt.ru/export/datasets/UD2.0_source/hu.tar.gz", | ||
"subdir": "UD2.0_source/hu" | ||
} | ||
], | ||
"telegram_utils": "MorphoTaggerModel" | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
deeppavlov/configs/morpho_tagger/UD2.0/ru_syntagrus/morpho_ru_syntagrus_predict.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"dataset_reader": { | ||
"name": "morphotagger_dataset_reader", | ||
"data_path": "UD2.0_source", | ||
"language": "ru_syntagrus", "data_types": ["test"] | ||
}, | ||
"dataset_iterator": { | ||
"name": "morphotagger_dataset" | ||
}, | ||
"chainer": { | ||
"in": ["x"], | ||
"in_y": ["y"], | ||
"pipe": [ | ||
{ | ||
"id": "lowercase_preprocessor", | ||
"name": "lowercase_preprocessor", | ||
"in": ["x"], | ||
"out": ["x_processed"] | ||
}, | ||
{ | ||
"id": "tag_vocab", | ||
"name": "default_vocab", | ||
"level": "token", | ||
"special_tokens": ["PAD", "BEGIN", "END"], | ||
"save_path": "morpho_tagger/UD2.0/ru_syntagrus/tag.dict", | ||
"load_path": "morpho_tagger/UD2.0/ru_syntagrus/tag.dict" | ||
}, | ||
{ | ||
"id": "char_vocab", | ||
"name": "default_vocab", | ||
"min_freq": 3, | ||
"special_tokens": ["PAD", "BEGIN", "END"], | ||
"level": "char", | ||
"save_path": "morpho_tagger/UD2.0/ru_syntagrus/char.dict", | ||
"load_path": "morpho_tagger/UD2.0/ru_syntagrus/char.dict" | ||
}, | ||
{ | ||
"in": ["x_processed"], | ||
"in_y": ["y"], | ||
"out": ["y_predicted"], | ||
"name": "morpho_tagger", | ||
"main": true, | ||
"save_path": "morpho_tagger/UD2.0/ru_syntagrus/model.hdf5", | ||
"load_path": "morpho_tagger/UD2.0/ru_syntagrus/model.hdf5", | ||
"tags": "#tag_vocab", | ||
"symbols": "#char_vocab", | ||
"verbose": 1, | ||
"char_embeddings_size": 32, "char_window_size": [1, 2, 3, 4, 5, 6, 7], | ||
"word_lstm_units": 128, "conv_dropout": 0.0, "char_conv_layers": 1, | ||
"char_highway_layers": 1, "highway_dropout": 0.0, "word_lstm_layers": 1, | ||
"char_filter_multiple": 50, "intermediate_dropout": 0.0, | ||
"word_dropout": 0.2, "lstm_dropout": 0.2, "regularizer": 0.01 | ||
}, | ||
{ | ||
"in": ["x", "y_predicted"], | ||
"out": ["y_prettified"], | ||
"name": "tag_output_prettifier", | ||
"end": "\n" | ||
} | ||
], | ||
"out": ["y_prettified"] | ||
}, | ||
"predict": { | ||
"batch_size": 32, | ||
"outfile": "results/ud_ru_syntagrus_test.res" | ||
}, | ||
"metadata": { | ||
"download": [ | ||
"http://lnsigo.mipt.ru/export/deeppavlov_data/morpho_tagger.tar.gz", | ||
{ | ||
"url": "http://lnsigo.mipt.ru/export/datasets/UD2.0_source/ru_syntagrus.tar.gz", | ||
"subdir": "UD2.0_source/ru_syntagrus" | ||
} | ||
], | ||
"telegram_utils": "MorphoTaggerModel" | ||
} | ||
} |
Oops, something went wrong.