In nltk. collocations I use this finder.apply_ngram_filter(lambda *w: w not in list)
. But I do not know what does mean the asterisk here. can someone explain me what the meaning of *w
here? Because I know that the asterisk comes after the string and not before it.
Asked
Active
Viewed 271 times
0
-
1`*` has nothing to do with regexes here. – Maroun Nov 30 '14 at 15:50
-
That is functional programinng. – WannaBeCoder Nov 30 '14 at 15:52
1 Answers
0
It is argument unpacking :*args and **kwargs?. This means it is taking all the arguments you might pass to a function.

Community
- 1
- 1

QuantumLicht
- 2,103
- 3
- 23
- 32