NLTK - explanation of inconsistent behavior of disperson_plot

31 Views Asked by At

Why ahab and Ahab make the difference in nltk dispersion_plot?

from nltk.book import (
    text1 as mobydick
)
mobydick.dispersion_plot(['starbuck', 'captain', 'ahab'])

enter image description here

mobydick.dispersion_plot(['starbuck', 'captain', 'Ahab'])

enter image description here

Environment

NLTK: 3.8.1
Python: 3.9.13
0

There are 0 best solutions below