xrc10 / formal-sty-trans Goto Github PK
View Code? Open in Web Editor NEWsource code for "Formality Style Transfer with Hybrid Textual Annotations"
source code for "Formality Style Transfer with Hybrid Textual Annotations"
Namespace(adaptive_softmax_cutoff=None, arch='sty_transformer', attention_dropout=0.0, clip_norm=25, cnn_dropout=0.5, cnn_filters=100, criterion='cross_entropy', data='/content/formal-sty-trans/pro_data.txt', decoder_attention_heads=8, decoder_embed_dim=512, decoder_embed_path=None, decoder_ffn_embed_dim=2048, decoder_layers=6, decoder_learned_pos=False, decoder_normalize_before=False, device_id=0, distributed_backend='nccl', distributed_init_method=None, distributed_port=-1, distributed_rank=0, distributed_world_size=1, dropout=0.1, encoder_attention_heads=8, encoder_embed_dim=512, encoder_embed_path=None, encoder_ffn_embed_dim=2048, encoder_layers=6, encoder_learned_pos=False, encoder_normalize_before=False, fp16=False, keep_interval_updates=-1, left_pad_source='True', left_pad_target='False', log_format=None, log_interval=1000, lr=[0.25], lr_scheduler='reduce_lr_on_plateau', lr_shrink=0.1, max_epoch=0, max_sentences=None, max_sentences_valid=None, max_source_positions=1024, max_target_positions=1024, max_tokens=6000, max_update=0, min_loss_scale=0.0001, min_lr=1e-05, momentum=0.99, no_epoch_checkpoints=False, no_progress_bar=False, no_save=False, no_token_positional_embeddings=False, optimizer='nag', pre_train_max_epoch=0, raw_text=False, relu_dropout=0.0, restore_best=False, restore_file='checkpoint_last.pt', save_dir='checkpoints', save_interval=1, save_interval_updates=0, seed=1, sentence_avg=False, share_all_embeddings=True, share_decoder_input_output_embed=False, skip_invalid_size_inputs_valid_test=False, source_lang=None, target_lang=None, task='translation', train_subset='train', update_freq=[1], valid_subset='valid', validate_interval=1, weight_decay=0.0)
Traceback (most recent call last):
File "train.py", line 469, in
main(args)
File "train.py", line 32, in main
task = tasks.setup_task(args)
File "/content/formal-sty-trans/formal-sty-trans/fairseq/tasks/init.py", line 19, in setup_task
return TASK_REGISTRY[args.task].setup_task(args)
File "/content/formal-sty-trans/formal-sty-trans/fairseq/tasks/translation.py", line 57, in setup_task
args.source_lang, args.target_lang = data_utils.infer_language_pair(args.data)
File "/content/formal-sty-trans/formal-sty-trans/fairseq/data/data_utils.py", line 21, in infer_language_pair
for filename in os.listdir(path):
NotADirectoryError: [Errno 20] Not a directory: '/content/formal-sty-trans/pro_data.txt'
File "train.py", line 469, in <module>
main(args)
File "train.py", line 181, in main
trg_plain_epoch_iter=trg_plain_epoch_iter,
File "train.py", line 241, in train
for k, v in log_output.items():
I get this error while training (I ran pipeline.sh). log_output
is None. Can someone suggest what is wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.