This library uses the keyword2svec API (code here) to fetch synonmys for a specified set of keywords
keywords.py
takes the input file (in JSON format; see input.json
for example), output file, and the desired number of synonyms for each keyword as command line arguments
python keywords.py input.json output.json 5
This will produce a json file named output.json
containing 5 synonyms for each keyword