Giter VIP home page Giter VIP logo

agpc's Introduction

Automatic Generation of Personalized Comment Based on User Profile

Requirements

  • Python 3.5
  • tensorflow 1.4

Preprocessing

python prep_data.py 

We provide the sample data in sample_data/sample_data.csv


Training

python train_PCGN.py

All configurations and hyperparameters of the model are in configs/pcgn_config.yaml


Inference and Evaluation

python infer_PCGN.py

Citing this work

Please kindly cite our paper if this paper or the code are helpful.

@article{zeng2019automatic,
  title={Automatic Generation of Personalized Comment Based on User Profile},
  author={Zeng, Wenhuan and Abuduweili, Abulikemu and Li, Lei and Yang, Pengcheng},
  journal={ACL 2019},
  pages={229},
  year={2019}
}

agpc's People

Contributors

dependabot[bot] avatar walleclipse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

agpc's Issues

AttributeError: module 'tensorflow.python.ops.rnn_cell_impl' has no attribute '_like_rnncell'

WARNING:tensorflow:From C:\Users\cydream\Desktop\AGPC-master\model\cell.py:12: BasicLSTMCell.init (from tensorflow.python.ops.rnn_cell_impl) is deprecated and will be removed in a future version.
Instructions for updating:
This class is deprecated, please use tf.nn.rnn_cell.LSTMCell, which supports all the feature this cell currently has. Please replace the existing code with tf.nn.rnn_cell.LSTMCell(name='basic_lstm_cell').
Traceback (most recent call last):
File "train_PCGN.py", line 174, in
main(config)
File "train_PCGN.py", line 79, in main
l2_regularize=l2_regularize, learning_rate=learning_rate, max_to_keep=max_checkpoints, max_gradient_norm=max_gradient_norm,
File "C:\Users\cydream\Desktop\AGPC-master\model\PCGN_model.py", line 89, in init
self.build_model()
File "C:\Users\cydream\Desktop\AGPC-master\model\PCGN_model.py", line 300, in build_model
name='PCGNWrapper')
File "C:\Users\cydream\Desktop\AGPC-master\model\PCGN_attention.py", line 152, in init
if not rnn_cell_impl._like_rnncell(cell): # pylint: disable=protected-access
AttributeError: module 'tensorflow.python.ops.rnn_cell_impl' has no attribute '_like_rnncell'

我装的tensorflow1.4 出现了这个错误

论文

找不到论文下载链接,可以分享一下吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.