Closed smishy05 closed 4 years ago
Hi,
Did you try compiling the original GreetingsBot? The bot definition above is not complete. You're using entities that are not defined and the REST platform is not added to the Maven dependencies.
Thanks for the reply.
Yes, the original GreetingsBot worked absolutely fine. But I have printed the entities that I just extracted right? I removed the REST platform too. It's still giving the same error.
The entities contract(), part(), as() and function() are not defined. We have some built-in entities that you can use (e.g., any() from com.xatkit.dsl.DSL.any for any String). If you need to define your own entities you should do it as follows:
val contract = mapping("Contract")
.entry()
.value("value 1")
.synonym("synonym 1 of value 1")
.synonym("synonym 2 of value 1")
...
.synonym("synonym n of value 1")
.value("value 2")
.synonym("synonym 1 of value 2")
.synonym("synonym 2 of value 2")
...
.synonym("synonym n of value 2")
...;
then use it in your intent: .context("contract").parameter("cName").fromFragment("CONTRACT").entity(contract);
Thanks a lot! Using any()
worked like a charm. I messed up with the parameter inside the entity()
.
Also, defining my own entities also proved to be very helpful! Thanks a lot for the help.
Hi there,
I downloaded the template provided for the project and placed it in the
xatkit-examples
directory. I made tweaks to the bot and here is theGreetingsBot.java
:The
pom.xml
file is:When I type in the command -
mvn clean compile
I get this:
I found that it is a issue with
lombok
. What should I do then?Thanks in advance!