GithubHelp home page GithubHelp logo

ibm-ecosystem-engineering / watson-nlp Goto Github PK

View Code? Open in Web Editor NEW
43.0 5.0 30.0 391.21 MB

This collection demonstrates how to help you to quickly embed Watson NLP in your own applications.

Home Page: https://techzone.ibm.com/collection/embedded-ai

License: Apache License 2.0

Python 0.09% Jupyter Notebook 99.87% Dockerfile 0.01% Java 0.03% HTML 0.01%
artificial-intelligence embeddable-ai ibm-watson-libraries-for-embed natural-language-processing watson

watson-nlp's People

Contributors

abhilasha-mangal avatar arora-r avatar chen-chris-topher avatar hitalukder avatar jamaya2001 avatar kevinxhuang avatar kmacdonald06 avatar krook avatar kunal-savvy avatar kunal-sawarkar avatar mjspriggs avatar sahil11129 avatar shivam6693 avatar timroster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

watson-nlp's Issues

Issue connecting to REST and gRPC servers

On some developer workstations there is a problem connecting to the REST or gRPC services after building and running images locally, resulting in the following error on the client:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = “failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8085: Socket closed”
	debug_error_string = “UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8085: Socket closed

The cause of this seems to be that the process dies in the container server:

2022-12-14T22:45:20.971419 [MODEL-MANAGR:INFO:140660459217152] <COM44739400I> Loading local models into Common Service...
2022-12-14T22:45:20.971707 [MODEL-LOADER:INFO:140660459217152] <COM89711114I> Loading model 'classification_ensemble-workflow_lang_en_tone-stock'

.

.

/run_with_gateway.sh: line 13:    10 Killed                  python3 -m watson_runtime.grpc_server

I see this issue with an Intel Mac (both Big Sur and Monterey) using Docker Desktop (which shows the container is running and bound to the expected port). It's been reported by another user on a Mac as well.

Script generates error "invalid reference format"

Tutorial: https://github.com/ibm-build-lab/Watson-NLP/tree/main/MLOps/Deploy-to-Code-Engine
Environment: I am testing with a Mac using zsh shell and docker
Problem description:

When I execute the commands:

REGISTRY=cp.icr.io/cp/ai
MODELS="cp.icr.io/cp/ai/watson-nlp_syntax_izumo_lang_en_stock:1.0.6 cp.icr.io/cp/ai/watson-nlp_syntax_izumo_lang_fr_stock:1.0.6"
for i in $MODELS
do
  image=${REGISTRY}/$i
  docker run -it --rm -e ACCEPT_LICENSE=true -v `pwd`/models:/app/models $image
done

I see this error response:

docker: invalid reference format.

If I change the script as follows, it works:

for i in watson-nlp_syntax_izumo_lang_en_stock:1.0.6 watson-nlp_syntax_izumo_lang_fr_stock:1.0.6
do
  image=${REGISTRY}/$i
  echo $image
  docker run -it --rm -e ACCEPT_LICENSE=true -v `pwd`/models:/app/models $image
done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.