最佳答案
因为nltk
使用matplotlib
,所以可以对figsize
进行简单的更改:
import matplotlib.pyplot as plt
plt.figure(figsize=(20, 8)) # change figsize to (width, height), the size you want
# rest of code...
text1.dispersion_plot(['somehow', 'year', 'what'])
关于python - NLTK离散度图尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42848307/