udacity / aind-nlp-bookworm Goto Github PK
View Code? Open in Web Editor NEWA simple question-answering system built using IBM Watson's NLP services.
License: MIT License
A simple question-answering system built using IBM Watson's NLP services.
License: MIT License
When executing the notebook's first test I get the error below:
WatsonException: Error: The Watson Discovery Service no longer supports Alchemy Language enrichments. Update your configuration to use Natural Language Understanding enrichments., Code: 400
https://www.ibm.com/blogs/bluemix/2017/03/bye-bye-alchemyapi/
# Prepare a collection of documents to use
col, col_id = helper.fetch_object(discovery, "collection", "Story Chunks", environment_id=env_id,
create=True, create_args=dict(
environment_id=env_id, configuration_id=cfg_id,
description="Stories and plots split up into chunks suitable for answering"
))
WatsonException: Error: The request failed. Please try again., Code: 415
It worked the previous week. New services with new credentials don't solve the issue.
discovery = watson_developer_cloud.DiscoveryV1(
version='2018-08-01',
url=discovery_creds['url'],
iam_apikey=discovery_creds['apikey'])
Throws the following warning:
DeprecationWarning: watson-developer-cloud moved to ibm-watson. To get updates, use the new package.
To follow the instructions and update the notebook ibm-watson
and ibm-cloud-sdk-core
can be installed with pip and imported as follows:
import ibm_watson
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
By using IAMAuthenticator
discovery
can be instantiated:
authenticator = IAMAuthenticator(apikey=discovery_creds['apikey'],
url=discovery_creds['url'])
discovery = ibm_watson.DiscoveryV1(version='2018-08-01',
authenticator=authenticator)
However, both listing and creating environments now throws an error:
environments = discovery.list_environments().get_result()
ApiException: Error: Not Found, Code: 404
and
# Prepare an environment to work in
env, env_id = helper.fetch_object(
discovery, "environment", "Bookworm",
create=True, create_args=dict(
description="A space to read and understand stories" # feel free to edit
))
ApiException: Error: Not Found, Code: 404
Change the environments line in the following to "environment": "list_environments"
in the following snippet. Alternatively, give some guidance on which version of the watson_developer_cloud
to install. Reference the repo for the change.
# Methods for each object type
list_methods = {
"environment": "list_environments",
"configuration": "list_configurations",
"collection": "list_collections",
"workspace": "list_workspaces"
}
See this forum post for more info.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.