Skip to content

Instantly share code, notes, and snippets.

@yashrsharma44
Last active Mar 13, 2019
Embed
What would you like to do?
Instructions to use summarizer

Instructions to use RBM

  • First clone the following repository -
git clone https://github.com/Law-AI/summarization.git
  • cd summarization/unsupervised/RBM
  • cd into the RBM folder
  • pip install -r requirements.txt
  • pip install scipy numpy nltk theano
  • pip install Image Pandas
  • Open terminal and perform
>>> import nltk
>>> nltk.set_proxy('https://172.16.2.30:8080')
>>> nltk.set_proxy('http://172.16.2.30:8080')
>>> nltk.download()
  • A GUI will open, click on all_packages, and click Download button
  • Make sure all the options in the GUI is green, if red/not green, click on that package and download that also
  • Create an input folder and output folder
mkdir input
mkdir output
# Make sure you put all the input case files into input folder
# Also there should be no recursive folder, if you use it, then enter the commands like that
# For eg. if you paste a folder into input, then while running the code use input/name_of_folder
  • python Summarizer.py input ouput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment