parajain / structscribe

Resources and code for: Scalable Micro-planned Generation of Discourse from Structured Data

Home Page:https://www.mitpressjournals.org/doi/pdfplus/10.1162/coli_a_00363

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Major dependencies

  • Python
  • Pytorch
  • Spacy

Dataset

  • Link to download dataset: link
  • Above link contains: Dataset 1, 2 and 3 as describes in the paper

Setup DBpedia Lookup

For experimentation purpose models are directly loaded in the memory. But there is an option to create an rpc server to create an API (this is slower, but to try our different inputs it is useful). Not needed to run experiment.py

Generation server

  • To run: python S2SServer.py configurations/s2s.config.json

Gender predictor module server

  • Gender server code is present in code\anaphora_replacer
  • To run: python GenderServer.py