ale3otik / paraphrases-generator Goto Github PK
View Code? Open in Web Editor NEWParaphrases generator based on RAVE.
License: MIT License
Paraphrases generator based on RAVE.
License: MIT License
Hi! Thanks for providing this code.
I was planning to just test this on my own sentence pairs and see how well it works. Do you happen to have a pretrained model to share as well? That would be amazing. Thanks!
Eric
Hi Aleksey, had a couple of questions on the implementation, hoping you can get back.
Thanks
Hi.I want to know how to use the bleu.py to evaluate the model.Thanks!
mldl@ub1604:~/ub16_prj/paraphrases-generator$ python3 train.py
ALL: train: 0, test: 0
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pandas/core/indexes/base.py", line 3078, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'question1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 51, in
batch_loader = BatchLoader(datasets=datasets)
File "/home/mldl/ub16_prj/paraphrases-generator/utils/batch_loader.py", line 61, in init
self.build_vocab(sentences)
File "/home/mldl/ub16_prj/paraphrases-generator/utils/batch_loader.py", line 265, in build_vocab
sentences = self.get_sentences_from_data()
File "/home/mldl/ub16_prj/paraphrases-generator/utils/batch_loader.py", line 250, in get_sentences_from_data
sentences += list(df['question1'].values) + list(df['question2'].values)
File "/usr/local/lib/python3.5/dist-packages/pandas/core/frame.py", line 2688, in getitem
return self._getitem_column(key)
File "/usr/local/lib/python3.5/dist-packages/pandas/core/frame.py", line 2695, in _getitem_column
return self._get_item_cache(key)
File "/usr/local/lib/python3.5/dist-packages/pandas/core/generic.py", line 2489, in _get_item_cache
values = self._data.get(item)
File "/usr/local/lib/python3.5/dist-packages/pandas/core/internals.py", line 4115, in get
loc = self.items.get_loc(item)
File "/usr/local/lib/python3.5/dist-packages/pandas/core/indexes/base.py", line 3080, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'question1'
mldl@ub1604:~/ub16_prj/paraphrases-generator$
Looking through the notebooks, I still can't figure out how to generate a paraphrased sentence. Does this package includes function similar to model.predict()
? So that it will take a string as input and provide a paraphrased string as output. Thanks in advance.
could you tell me how to generate sentence by source sentence only?
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.