【文件属性】:
文件名称:lib-nlp:简单的自然语言处理实用程序
文件大小:8.41MB
文件格式:ZIP
更新时间:2021-06-19 21:55:13
Scala
lib-nlp
Scala 的简单自然语言处理库。
词向量
Inflector可用于为输入词生成复数或单数形式。
val word = " world "
val plural = Inflector .pluralize(word)
val singular = Inflector .singularize(plural)
名词短语提取
给定一些输入英文文本, Extractor生成相关的名词短语。 这是通过使用实用程序处理输入文本来完成的。
val extractor = new OpenNlpExtractor ()
val inputText = " This is a piece of text. There are several sentences. There may be something about a cotton turquoise dress "
ex
【文件预览】:
lib-nlp-master
----version.sbt(41B)
----LICENSE(1KB)
----src()
--------test()
--------main()
----build.sbt(1KB)
----.gitignore(13B)
----project()
--------build.sbt(206B)
--------build.properties(19B)
----README.md(2KB)