<p>我有一个问题,如何计算文字中短语之间的字数?例如,我有下一段文字:</p>
<blockquote>
<p>Elon Musk is a technology entrepreneur and investor. He is the founder, CEO, and lead designer of SpaceX. Elon Musk has stated that the goals of SpaceX, Tesla, and SolarCity revolve around his vision to change the world and humanity.</p>
</blockquote>
<p>我想数一数“Elon Mask”和“SpaceX”之间有多少个词。返回smth,就像一个带数字的列表,然后找到平均单词距离。例如,[15,6]。你知道吗</p>
<p>我知道,在单词的情况下,我们可以在单词上拆分文本。但是如何处理短语呢?你知道吗</p>