I have read the text1.similar(\"monstrous\") and text1.concordance(\"monstrous\") from this.
Where I couldn\'t get the satisfactory answer for the difference betwee
I will explain with example:
text1.similar("monstrous")
will output the words with similar context such as word1 ______ word2
. For example it outputs the word doleful. If you run:
text1.concordance("monstrous")
You will see among the matches the line:
that has survived the flood ; most monstrous and most mountainous ! That Himmal
If you run:
text1.concordance("doleful")
You will see among the matches the line:
ite perspectives . There ' s a most doleful and most mocking funeral ! The sea
And
text1.common_contexts(["monstrous", "doleful"])
will output common surrounding words of monstrous and doleful which are "most" and "and"
most_and