Skip to content

Commit

Permalink
add help string for no-stem arg for mapred_tfidf
Browse files Browse the repository at this point in the history
  • Loading branch information
zbsimon committed May 27, 2015
1 parent 56d1919 commit 424525f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mapred_tfidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ def get_output_dir(sub_dir=''):
help=stop_words_help, dest='stop_words')

stemmer_help = 'if true, use nltk PorterStemmer to stem ngrams'
parser.add_argument('--stem', action='store_true', dest='stem')
parser.add_argument('--no-stem', action='store_false', dest='stem')
parser.add_argument('--stem', action='store_true',
dest='stem', help=stemmer_help)
parser.add_argument('--no-stem', action='store_false', dest='stem',
help=stemmer_help)
parser.set_defaults(stem=True)

args = parser.parse_args()
Expand Down

0 comments on commit 424525f

Please sign in to comment.