Skip to content

Milozms/TSMH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for EMNLP 2020 Findings Paper: Language Generation via Combinatorial Constraint Satisfaction:A Tree Search Enhanced Monte-Carlo Approach

Requirement

  • python

    • >=3.6
  • python packages

  • word embedding

    • Download or train a word embedding first and place it at config.emb_path and set config.emb_path='word_max'.

Running

  • Generation

    • For generating new sample for each tasks:
      • Give inputs in input/input.txt, or change the input parameter in config.py
      • Change the mode parameter in config.py: q for questions, i for imperative, n for sentiment;
      • Run python key_gen_search.py / sentiment_key_gen_search.py to generate.
      • Outputs are in output.
  • Details

    • Make sure that paths for package and data are correctly set in 'config.py'.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages