Skip to content

Commit

Permalink
attempt to combine featurisation applied to parts
Browse files Browse the repository at this point in the history
  • Loading branch information
ritazagoni committed May 24, 2017
1 parent 9f15e40 commit 8340832
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,12 @@ def both_funcions(a_word):

bag_of_words_parts = apply_to_parts(bag_of_words, '&&&')
bag_of_ngrams_parts = apply_to_parts(bag_of_ngrams, '&&&')
functions = [bag_of_words_parts, bag_of_ngrams_parts]
kwargs = [{}, {'n': 2}]
# feature_extractor = combine(functions, kwarg_params=kwargs)
feature_extractor = bag_of_words_parts

#functions = [bag_of_words_parts, bag_of_ngrams_parts]
functions = [bag_of_words, bag_of_ngrams]
kwargs = [{}, {'n': 2}]
#feature_extractor = bag_of_words_parts
feature_extractor = combine(functions, kwarg_params=kwargs)

# both_funcions('wash')
### Define feature vectors based on a whole corpus
Expand Down

0 comments on commit 8340832

Please sign in to comment.