nltk.TextCollection.common_contexts¶
-
TextCollection.
common_contexts
(words, num=20)¶ Find contexts where the specified words appear; list most frequent common contexts first.
Parameters: - word (str) – The word used to seed the similarity search
- num (int) – The number of words to generate (default=20)
Seealso: ContextIndex.common_contexts()