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
  • 91,013
  • 29
  • 181
  • 233
sss
  • 1,247
  • 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
  • 1,993
  • 2
  • 20
  • 31