【文件属性】:
文件名称:martinos-trigram-solution
文件大小:4KB
文件格式:ZIP
更新时间:2021-03-14 02:06:55
Clojure
卦
三联词是在任何给定文本中由3个单词组成的序列。 让我们举一个例子:“一只猫坐在地板上垫子上的另一只猫上”-它的三元组图看起来像这样:
{[ " the " " cat " ] [ " sat " ]
[ " cat " " sat " ] [ " on " ]
[ " sat " " on " ] [ " the " ]
[ " on " " the " ] [ " other " " mat " " floor " ]
[ " the " " other " ] [ " cat " ]
... etc.
}
要生成一个新的文本序列,请随机地从一个键开始,说["on" "the"] ,然后随机地选择一个值,说"other" ,现在您有了一个三字组["on" "the" "other"] 。 对于下一个三元组,您需要查找["the" "other"]并
【文件预览】:
martinos-trigram-solution-main
----project.clj(437B)
----test()
--------trigram_test()
----src()
--------trigram_test()
----.gitignore(112B)
----README.md(1KB)