Probability of Words following the first word in a sentence
Takes a string as input and gives the probability of each of the other words in the string following the first word.
If the input sentence is : I love skiing
it gives the probability each of the words 'love' and 'skiing' following 'I'.
'I' 'love' : 0.0033
'I' 'skiing' : 0.0033
In the form of a table, like so :
0.033 0.033
where the first value represents the probability of 'love' following 'I' and the second value the probability of 'skiing' following 'I'.
If any queries or suggestions, please contact at samyuktaramnath[at]gmail[dot]com or hale2bopp[at]gmail[dot]com.
引用格式
Samyukta Ramnath (2024). Probability of Words following the first word in a sentence (https://www.mathworks.com/matlabcentral/fileexchange/42711-probability-of-words-following-the-first-word-in-a-sentence), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!