我需要一些帮助在R中实现HMM模块.我是R的新手并且对它没有太多的了解.所以我必须使用HMM实现一个IE,我有两个文件夹,一个带有句子,另一个带有我希望从每个句子学习的相应标签.
folder1 > event1.txt: "2013 2nd International Conference on Information and Knowledge Management (ICIKM 2013) will be held in Chengdu, China during July 20-21, 2013."
folder2 > event1.txt:
"N: 2nd International Conference on Information and Knowledge Management (ICIKM 2013)
D: July 20-21, 2013
L: Chengdu, China"
N -> Name; D -> Date; L -> Location
Run Code Online (Sandbox Code Playgroud)
我的问题是如何在R上实现它,我如何初始化模型以及如何训练它?然后我如何将它应用于随机句子来提取信息?
在此先感谢您的帮助!
r machine-learning information-extraction hidden-markov-models