copyright | lastupdated | ||
---|---|---|---|
|
2017-12-20 |
{:shortdesc: .shortdesc} {:new_window: target="_blank"} {:tip: .tip} {:pre: .pre} {:codeblock: .codeblock} {:screen: .screen} {:javascript: .ph data-hd-programlang='javascript'} {:java: .ph data-hd-programlang='java'} {:python: .ph data-hd-programlang='python'} {:swift: .ph data-hd-programlang='swift'}
This documentation is for {{site.data.keyword.knowledgestudiofull}} on {{site.data.keyword.cloud}}. To see the documentation for the previous version of {{site.data.keyword.knowledgestudioshort}} on {{site.data.keyword.IBM_notm}} Marketplace, click this link {: new_window}. {: tip}
{: #wks_tutintro}
This {{site.data.keyword.knowledgestudiofull}} tutorial helps you perform prerequisite tasks that must be completed before you can start any of the other tutorials. {: shortdesc}
{: #prereq}
Confirm you're using a supported browser. For information, see Browser requirements.
{: #instance}
-
If you haven't already, sign up for an {{site.data.keyword.ibmid}} {: new_window} and log in to {{site.data.keyword.cloud_notm}}.
-
From the Dashboard page {: new_window}, sign up for a {{site.data.keyword.knowledgestudioshort}} plan.
-
Click Catalog.
-
In the search field, delete the label:lite filter (if present) and search for
{{site.data.keyword.knowledgestudioshort}}
. -
Select {{site.data.keyword.knowledgestudioshort}}.
-
If you don't already have a Pay-As-You-Go account or Subscription account {: new_window}, on the {{site.data.keyword.knowledgestudioshort}} catalog page, click Upgrade. You are prompted to provide credit card information.
If you choose a {{site.data.keyword.knowledgestudioshort}} Free plan, your credit card will not be charged. You can use the Free plan for an unlimited time at no cost.
{: tip}
- After you sign up for a plan, launch {{site.data.keyword.knowledgestudioshort}}.
To complete this tutorial, you must have at least one user ID that you can use in {{site.data.keyword.knowledgestudioshort}}. This user ID must have the Admin role. If you signed up for a free plan, as the only user, you have the Admin role. For information about user roles, see Assembling a team.
{: #wks_tutless1}
In this lesson, you will learn about the different roles that you can assign to users in {{site.data.keyword.knowledgestudioshort}}.
The creation of a machine-learning annotator requires input from subject matter experts, project managers, and users who can understand and interpret statistical models. Administrators assign roles to each user, such that they have appropriate authority for their tasks. For more information about user roles, see Assembling a team.
-
Log in to {{site.data.keyword.knowledgestudioshort}} with your administrator ID.
-
Click the Settings icon to open the Service Details page. The page lists all the user IDs that are registered as {{site.data.keyword.watson}} {{site.data.keyword.knowledgestudioshort}} users. Each user ID has one of the following roles (in decreasing order of included permissions):
- Admin
- ProjectManager
- HumanAnnotator
For more information about user roles, see Assembling a team.
-
Verify that there is at least one user with the Admin role. A user ID with this role can create workspaces, and act as a project manager or human annotator.
-
If you have access to additional user IDs, verify that there are at least two users with the HumanAnnotator role.
Note: Creating a real-life model typically involves multiple human annotators in addition to an administrator or project manager. However, for purposes of the tutorial, you can continue with a single user ID.
-
Optional: Change the role assigned to a user ID. Click the Modify account setting icon in the Action column of the table row for a user ID, and change the assigned user role.
Note: You can upgrade a user ID to a role with greater permissions, but you cannot downgrade a user with an Admin or ProjectManager role to the HumanAnnotator role.
{: #wks_tutless2}
In this lesson, you will learn how to create a workspace within {{site.data.keyword.knowledgestudioshort}}.
A workspace defines all of the resources that are required to create a machine-learning annotator, including training documents, the type system, dictionaries, and annotations that are added by human annotators. For more information about workspace creation, see Creating a workspace.
-
As a {{site.data.keyword.knowledgestudioshort}} administrator, from your {{site.data.keyword.cloud_notm}} dashboard {:new_window}, launch the {{site.data.keyword.knowledgestudioshort}} service.
-
Click Create Worskpace.
-
Specify the details for the new workspace:
- In the Workspace name field, type
My workspace
. - In the Workspace description field, type
Watson Knowledge Studio tutorial workspace
. - In the Language of documents field, use the default value, English. The sample files you will be using for this tutorial are in English.
- In the Workspace name field, type
-
Click Create.
The workspace is created and opens automatically.
You can now start configuring the workspace resources, such as the type system.
{: #wks_tutless3}
In this lesson, you will learn how to upload and modify a type system within {{site.data.keyword.knowledgestudioshort}}. You must create or upload a type system before you begin any annotation tasks.
For more information about type systems, see Type systems.
-
Download the en-klue2-types.json file to your computer. This file contains an example KLUE type system.
-
From the sidebar, click Assets & Tools > Entity Types.
-
On the Entity Types page, click Upload.
-
Select the
en-klue2-types.json
file from your computer and click Upload. The uploaded type system is displayed in the table. -
Browse the type system so you can see the data that was uploaded.
-
Edit an entity type:
After you finish making changes to the type system, you can begin adding documents to your workspace.
{: #wks_tutless4}
In this lesson, you will learn how to add a dictionary to a workspace in {{site.data.keyword.knowledgestudioshort}}. Dictionaries are used for pre-annotating text when creating a machine-learning annotator.
For more information about dictionaries, see Adding dictionaries to a workspace.
-
Download the
dictionary-items-organization.csv
file to your computer. This file contains dictionary terms in CSV format, suitable for uploading into a {{site.data.keyword.knowledgestudioshort}} dictionary. -
From the Assets & Tools > Pre-annotators sidebar, select the Dictionaries tab, and click Manage Dictionaries.
-
Click Create Dictionary to add a dictionary.
Note: Do not click Upload dictionary, which is used to upload a dictionary that you want to use as-is. For the tutorial, you will create a new editable dictionary and then upload terms into it.
-
In the Name field, type
Test dictionary
and click Save to create the (empty) dictionary.The new dictionary is created and automatically opened for editing.
-
In the dictionary pane, click Upload.
-
In the Upload Dictionary Entries window, select the
dictionary-items-organization.csv
file from your computer and then click Upload. The terms in the file are uploaded into the dictionary. -
Click Add Entry to create a new term. An editable row is added at the top of the table.
-
In the Surface Forms column, type
IBM
andInternational Business Machines Corporation
on separate lines. (When you begin to type a new surface form, a space is added below for an additional surface form.) Leave the radio button next toIBM
selected, which indicates thatIBM
is the lemma. -
In the Part of Speech column, select Noun.
-
Click Save.
After you create a dictionary, you can use it to speed up human annotation tasks by pre-annotating the documents.
{: #wks_tutsum}
While learning about {{site.data.keyword.knowledgestudioshort}}, you created a workspace and added artifacts to it.
By completing this tutorial, you learned about the following concepts:
- Workspaces
- Type systems
- Dictionaries