xiaolinandy / rods Goto Github PK
View Code? Open in Web Editor NEWThe repository for ACL 2022 paper: Other Roles Matter! Enhancing Role-Oriented Dialogue Summarization via Role Interactions
The repository for ACL 2022 paper: Other Roles Matter! Enhancing Role-Oriented Dialogue Summarization via Role Interactions
PGN_interact
Hello, when I run the BERTAbs interact experiment, run_CSDS.sh , I encountered a problem, as follows:
Traceback (most recent call last):
File "train.py", line 131, in
train_abs(args, device_id)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/train_abstractive.py", line 274, in train_abs
train_abs_single(args, device_id)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/train_abstractive.py", line 335, in train_abs_single
trainer.train(train_iter_fct, args.train_steps)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/models/trainer.py", line 162, in train
report_stats)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/models/trainer.py", line 249, in _gradient_accumulation
outputs, _, scores = self.model(src, tgts, segs, clss, mask_src, mask_tgts, mask_cls, self.args.merge, self.args.inter_weight, role_mask)
File "/home/ubuntu/anaconda3/envs/rods/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/models/model_builder.py", line 274, in forward
user_outputs, agent_outputs, state_user, state_agent, user_scores, agent_scores, kl_mask_user, kl_mask_agent = self.role_decoder(tgts[0][:, :-1], tgts[1][:, :-1], top_vec, user_dec_state, agent_dec_state, merge_type, inter_weight, role_mask)
File "/home/ubuntu/anaconda3/envs/rods/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/models/decoder.py", line 477, in forward
step=step)
File "/home/ubuntu/anaconda3/envs/rods/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/models/decoder.py", line 186, in forward
type="context")
File "/home/ubuntu/anaconda3/envs/rods/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/ssd/lcq/RODS/models/BERT_interact/models/neural.py", line 341, in forward
batch_size = key.size(0)
AttributeError: 'str' object has no attribute 'size'
I try to print the 'key'(batch_size = key.size(0)) in the neural.py, the last output is not tensor, but the string "last_hidden_state"
你好,除了论文中提到的CSDS和MC数据集,是否还有其他中文对话/会议摘要数据集呢?尤其是会议摘要(长对话)
如题
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.