Probability of Words following the first word in a sentence

版本 1.1.0.0 (3.4 KB) 作者: Samyukta Ramnath
Part of SentenceParseNew uploaded earlier
314.0 次下载
更新时间 2013/7/22

查看许可证

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 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 String Parsing 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Screenshot, description

1.0.0.0