Permalink
Browse files

Artifacts removed

  • Loading branch information...
1 parent ea61d48 commit 0a88dff5edf31aee72afd9869b9db3e66e41843a @shreyu86 committed Sep 19, 2011
Showing with 0 additions and 11 deletions.
  1. +0 −11 gensim_lda_pubmed.py
View
@@ -19,26 +19,15 @@
usage = "usage: python %prog -i [inputfile] -k [number of topics to extract] -v [verbose output FALSE by default] -t [TRUE/ FALSE for TFIDF weights] -r [return topics per document TRUE/FALSE (default FALSE)]"
parser = OptionParser(usage=usage)
parser.add_option("-i", "--inputfile",action="store", dest="inputfile",help="Enter the file containing PubMed abstracts", metavar="IFILE")
-#parser.add_option("-m", "--model",action="store",dest="model",help="Enter the name of file where you want to store output model", metavar="MFILE")
-#parser.add_option("-d", "--dictionary",action="store",dest="dicto",help="Enter the name of file where you want to store dictionary", metavar="DFILE")
-#parser.add_option("-c", "--corpusname",action="store",dest="corpname",help="Enter the name of file where you want to store corpus", metavar="CFILE")
parser.add_option("-k", "--numtopics",action="store",dest="ntopics",type="int",help="Number of topics", metavar="NTOP")
parser.add_option("-t", "--tfidf",action="store",dest="tfidf",help="TFIDF weignting (default TRUE)", metavar="TFIDF",default="TRUE")
parser.add_option("-v",action="store",help="Verbose Output TRUE/FALSE (default FALSE)", dest="verbose",default="FALSE")
parser.add_option("-r",action="store",help="Return topics per document TRUE/FALSE (default FALSE)", dest="fit",default="FALSE")
-#parser.add_option("-q", action="store_false",help="No stemming", dest="stem")
(options, args) = parser.parse_args()
if (len(options.inputfile)<0):
parser.print_help()
-#if (len(options.model)<0):
-# parser.print_help()
-#if (len(options.dicto)<0):
-# parser.print_help()
if (options.ntopics<=0):
parser.print_help()
-#if (len(options.corpname)<0):
-# parser.print_help()
-
def main():
model=options.inputfile+"_lda.model"

0 comments on commit 0a88dff

Please sign in to comment.