0

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.

Maroun
  • 94,125
  • 30
  • 188
  • 241
sss
  • 1,307
  • 2
  • 10
  • 16

1 Answers1

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