guxd / c-dnpg Goto Github PK
View Code? Open in Web Editor NEWData and code for the paper "Continuous Decomposition of Granularity for Neural Paraphrase Generation"
License: Other
Data and code for the paper "Continuous Decomposition of Granularity for Neural Paraphrase Generation"
License: Other
For Quora, there are actually 149,263 samples marked as "duplicated" in total, which can be used for paraphrasing. Instead of the data size (124K) reported in the paper (100K\4k\20k), is there a reason why not to use the full dataset? Thanks.
Thanks for open sourcing the code.
I managed to train a model, however I can not run inference on a simple sentence, since it seems I am not correctly calling the model.
Would be glad If you could add a simple example how to run basic inference...
model = GATransformer(config)
model.from_pretrained(modelDir)
model.to(device)
sentence = "Some cool sentence..."
inputs = model.tokenizer.encode(sentence, return_tensors="pt")
outputs = model(inputs)
print('outputs', outputs)
TypeError: forward() missing 2 required positional arguments: 'context_attn_mask' and 'response'
Now I want to repeat the question generation through your code, may I ask how to run the code?
Hello guxd, I have some questions about the dataset, why the dataset is in h5 format, can other formats be used instead? Is it possible to provide the code for data preparation?
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.