This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-472
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-472 by this push:
new d174bc4 WIP.
d174bc4 is described below
commit d174bc46004f72bd55b74bcb08086e25a4b22ee7
Author: Sergey Kamov <[email protected]>
AuthorDate: Wed Jan 5 00:21:14 2022 +0300
WIP.
---
.../entity/parser/stanford/impl/NCStanfordEntityParserImpl.scala | 1 +
pom.xml | 7 +++++++
2 files changed, 8 insertions(+)
diff --git
a/nlpcraft-stanford/src/main/java/org/apache/nlpcraft/nlp/entity/parser/stanford/impl/NCStanfordEntityParserImpl.scala
b/nlpcraft-stanford/src/main/java/org/apache/nlpcraft/nlp/entity/parser/stanford/impl/NCStanfordEntityParserImpl.scala
index 15c6347..7d7b388 100644
---
a/nlpcraft-stanford/src/main/java/org/apache/nlpcraft/nlp/entity/parser/stanford/impl/NCStanfordEntityParserImpl.scala
+++
b/nlpcraft-stanford/src/main/java/org/apache/nlpcraft/nlp/entity/parser/stanford/impl/NCStanfordEntityParserImpl.scala
@@ -27,6 +27,7 @@ import scala.jdk.CollectionConverters.*
class NCStanfordEntityParserImpl extends NCEntityParser:
@volatile private var stanford: StanfordCoreNLP = _
+ // https://stanfordnlp.github.io/CoreNLP/ner.html#java-api-example
override def start(cfg: NCModelConfig): Unit =
val p = new Properties()
diff --git a/pom.xml b/pom.xml
index c1d4ca7..9e41c01 100644
--- a/pom.xml
+++ b/pom.xml
@@ -372,5 +372,12 @@
</build>
<profiles>
+ <!-- Stanford CoreNLP integration is not included by default due to
GPL-licensed code. -->
+ <profile>
+ <id>stanford-corenlp</id>
+ <modules>
+ <module>nlpcraft-stanford</module>
+ </modules>
+ </profile>
</profiles>
</project>