Hi @rahul3 !
Now everything works in the master branch, so you can continue to review examples.
Native Python client is REST access library for users (It will be more clear after examples review)
Also you can look at existing Native Java client - https://github.com/apache/incubator-nlpcraft-java-client
--mdls=demo.LightSwitchneeds to be changed to
--mdls=demo.LightSwitchModelor the class name needs to be changed in the example code of LightSwitch.scala
Could not find artifact org.apache.nlpcraft:nlpcraft-java-client:pom:0.7.5 in central (https://repo.maven.apache.org/maven2)
Hmm. Could you describe here or in the new ticket what are you doing and what is wrong with it?
But you have the another error "Could not find artifact org.apache.nlpcraft:nlpcraft-java-client:pom:0.7.5 in central (https://repo.maven.apache.org/maven2)"
0.7.5 is uploaded on master (https://mvnrepository.com/artifact/org.apache.nlpcraft/nlpcraft/0.7.5, I have tested it rigth now)
So, I try to understand how you got your error.
Hello Sergey, yes NLPCraft 0.7.5 is in maven central but I was trying to use the
nlpcraft-java-client. I wanted to see the functionality of the java client because I want to build the python client. I followed the instruction at this link: https://nlpcraft.apache.org/download.html#java-client
I just created a new maven project and added this is my pom.xml. nlpcraft 0.7.5 has no issues but the issue is with the java client at version 0.7.5:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>nlpcraft-testing</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>org.apache.nlpcraft</groupId> <artifactId>nlpcraft</artifactId> <version>0.7.5</version> </dependency> <dependency> <groupId>org.apache.nlpcraft</groupId> <artifactId>nlpcraft-java-client</artifactId> <version>0.7.5</version> </dependency> </dependencies> </project>
There is a minor mistake on the site again.
artifactId should be 'java-client' but not nlpcraft-java-client
Thank you, ticket created - https://issues.apache.org/jira/browse/NLPCRAFT-332
Note, please that for java client project review - maybe it is more useful to pull this project and look at its code
(for 0.7.5 - git tag 'v0.7.5', for 0.8.0 - master branch, see my last message above)