SlideShare a Scribd company logo
Configuring the Classifier
on IBM Bluemix
craigtrim@gmail.com
QUESTION TYPE CLASSIFICATION
DATA PREPARATION ...
Part 1
1. Verification: invites a yes or no answer.
2. Disjunctive: Is X, Y, or Z the case?
3. Concept completion: Who? What? When? Where?
4. Example: What is an example of X?
5. Feature specification: What are the properties of X?
6. Quantification: How much? How many?
7. Definition: What does X mean?
8. Comparison: How is X similar to Y?
9. Interpretation: What is the significance of X?
10. Causal antecedent: Why/how did X occur?
11. Causal consequence: What next? What if?
12. Goal orientation: Why did an agent do X?
13. Instrumental/procedural: How did an agent do X?
14. Enablement: What enabled X to occur?
15. Expectation: Why didn't X occur?
16. Judgmental: What do you think of X?
 Questions are often generated by
a person's knowledge deficits
and cognitive disequilibrium,
which occurs when there are
obstacles to goals,
contradictions, impasses during
problem solving, anomalous
information, and uncertainty.
Question Types
A total of 5 points are distributed for
each question
Questions are gathered from public
domain sources off the internet
Point distribution is manual
Classification
Python script to take CSV formatted
data from Excel Spreadsheet
Creates a CSV file that the NL Classifier
can understand
Classification
DEPLOYING TO BLUEMIX
IN 5 SIMPLE STEPS ...
Part 2
Step 1: Access the Service (Slide 1)
IBM Bluemix Homepage
Step 1: Access the Service (Slide 2)
IBM Bluemix Homepage
Step 1: Access the Service (Slide 3)
Step 1: Access the Service (Slide 4)
Step 1: Access the Service (Slide 5)
Step 1: Access the Service (Slide 6)
Step 2: Add the Service (Slide 1)
Step 3: Access the Toolkit (Slide 1)
Step 3: Access the Toolkit (Slide 2)
Step 4: Deploy to Bluemix (Slide 1)
Step 4: Deploy to Bluemix (Slide 2)
Step 4: Deploy to Bluemix (Slide 3)
Step 5: View the App (Slide 1)
Step 5: View the App (Slide 2)
Step 5: View the App (Slide 3)
Step 5: View the App (Slide 3)
Step 5: View the App (Slide 4)
Step 5: View the App (Slide 5)
TRAINING A CLASSIFIER
IN 5 SIMPLE STEPS ...
Part 3
Step 1: Train a Classifier (Slide 1)
Step 1: Train a Classifier (Slide 2)
Step 2: Prepare the Data (Slide 1)
Format
• The data format is:
text,class
• The text is the actual question
or user statement; some real
world example
• The class is the classification of
this real world example
– Only [A-Za-z0-9] are permitted
– Use “myClassName” rather than
“my_class_name”
• The text and the class are
comma separated, with the
text occurring first
Example
what is the difference between being
alive and truly living?,comparison
"when is it time to stop calculating
risk and rewards and just go ahead
and do what you know is
right?”,conceptCompletion
"when is it time to stop calculating
risk and rewards and just go ahead
and do what you know is
right?”,interpretation
"if we learn from our mistakes why
are we always so afraid to make a
mistake?”,enablement
Step 2: Prepare the
Data (Slide 2)
Step 3: Import the Data (Slide 1)
Step 4: Train the Classifier (Slide 1)
Step 4: Train the Classifier (Slide 2)
Step 4: Train the Classifier (Slide 3)
Step 5: Use the Classifier (Slide 1)
Step 5: Use the Classifier (Slide 3)
Step 5: Use the Classifier (Slide 4)
Step 5: Use the Classifier (Slide 4)
Step 5: Use the Classifier (Slide 4)
ACCESSIBILITY
ACCESS AND GET/POST
Part 4
Optional: Rename the Service (Slide 1)
Optional: Add another Route (Slide 1)
Optional: Add another Route (Slide 2)
@RequestMapping(
value="/classify",
params="text",
method=RequestMethod.GET,
produces=MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public String classify(
@RequestParam("text") String text) {
NaturalLanguageClassifier classifierService = new NaturalLanguageClassifier();
classifierService.setUsernameAndPassword(username, password);
Classification classification = classifierService.classify(route, text);
ObjectMapper mapper = new ObjectMapper();
try{
return mapper.writerWithDefaultPrettyPrinter().
writeValueAsString(classification);
} catch(JsonProcessingException e){
logger.error(e);
}
}
Optional: Java Code
(Slide 1)
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>java-wrapper</artifactId>
<version>1.1.0</version>
</dependency>

More Related Content

Viewers also liked (10)

Foot valve for industrial pump applications
Foot valve for industrial pump applicationsFoot valve for industrial pump applications
Foot valve for industrial pump applications
M.S. Jacobs & Associates
 
DOVE: A Case Study
DOVE: A Case StudyDOVE: A Case Study
DOVE: A Case Study
Piyush Tripathi
 
Focus group (4) (2)
Focus group (4) (2)Focus group (4) (2)
Focus group (4) (2)
rebeccadahl98
 
東南アジアにおけるEC市場の概況と消費動向(2015年)
東南アジアにおけるEC市場の概況と消費動向(2015年)東南アジアにおけるEC市場の概況と消費動向(2015年)
東南アジアにおけるEC市場の概況と消費動向(2015年)
Yuriko Kai
 
ContainerとName Space Isolation
ContainerとName Space IsolationContainerとName Space Isolation
ContainerとName Space Isolation
maruyama097
 
加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える
Yu(u)ki IWABUCHI
 
SAS University Edition - Getting Started
SAS University Edition - Getting StartedSAS University Edition - Getting Started
SAS University Edition - Getting Started
Craig Trim
 
TensorFlow 入門
TensorFlow 入門TensorFlow 入門
TensorFlow 入門
Takenori Nakagawa
 
IBM World of Watson 2016 - DB2 Analytics Accelerator on Cloud
IBM World of Watson 2016 - DB2 Analytics Accelerator on CloudIBM World of Watson 2016 - DB2 Analytics Accelerator on Cloud
IBM World of Watson 2016 - DB2 Analytics Accelerator on Cloud
Daniel Martin
 
OpenShift v3 Technical Introduction
OpenShift v3 Technical IntroductionOpenShift v3 Technical Introduction
OpenShift v3 Technical Introduction
Etsuji Nakai
 
Foot valve for industrial pump applications
Foot valve for industrial pump applicationsFoot valve for industrial pump applications
Foot valve for industrial pump applications
M.S. Jacobs & Associates
 
東南アジアにおけるEC市場の概況と消費動向(2015年)
東南アジアにおけるEC市場の概況と消費動向(2015年)東南アジアにおけるEC市場の概況と消費動向(2015年)
東南アジアにおけるEC市場の概況と消費動向(2015年)
Yuriko Kai
 
ContainerとName Space Isolation
ContainerとName Space IsolationContainerとName Space Isolation
ContainerとName Space Isolation
maruyama097
 
加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える
Yu(u)ki IWABUCHI
 
SAS University Edition - Getting Started
SAS University Edition - Getting StartedSAS University Edition - Getting Started
SAS University Edition - Getting Started
Craig Trim
 
IBM World of Watson 2016 - DB2 Analytics Accelerator on Cloud
IBM World of Watson 2016 - DB2 Analytics Accelerator on CloudIBM World of Watson 2016 - DB2 Analytics Accelerator on Cloud
IBM World of Watson 2016 - DB2 Analytics Accelerator on Cloud
Daniel Martin
 
OpenShift v3 Technical Introduction
OpenShift v3 Technical IntroductionOpenShift v3 Technical Introduction
OpenShift v3 Technical Introduction
Etsuji Nakai
 

Similar to Bluemix NL Classifier Tutorial (20)

Telling your story: improving your presentation in 10 easy steps
Telling your story: improving your presentation in 10 easy stepsTelling your story: improving your presentation in 10 easy steps
Telling your story: improving your presentation in 10 easy steps
Fiona Passantino
 
Bringing Science to Software Development
Bringing Science to Software DevelopmentBringing Science to Software Development
Bringing Science to Software Development
Arty Starr
 
Scalable Learning Technologies for Big Data Mining
Scalable Learning Technologies for Big Data MiningScalable Learning Technologies for Big Data Mining
Scalable Learning Technologies for Big Data Mining
Gerard de Melo
 
More Aim, Less Blame: How to use postmortems to turn failures into something ...
More Aim, Less Blame: How to use postmortems to turn failures into something ...More Aim, Less Blame: How to use postmortems to turn failures into something ...
More Aim, Less Blame: How to use postmortems to turn failures into something ...
Daniel Kanchev
 
5 why training_presentation
5 why training_presentation5 why training_presentation
5 why training_presentation
Md.Aminul Islam ,CMRP,CSSBB
 
How to Use Agile to Move the Earth
How to Use Agile to Move the EarthHow to Use Agile to Move the Earth
How to Use Agile to Move the Earth
Ryan Martens
 
Web 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment ToolsWeb 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment Tools
Mohamed Amin Embi
 
A Better Way to Design & Build Immersive E Learning
A Better Way to Design & Build Immersive E LearningA Better Way to Design & Build Immersive E Learning
A Better Way to Design & Build Immersive E Learning
narchambeau
 
Stage6
Stage6Stage6
Stage6
Makoemon
 
Hpai class 16 - learning - 041320
Hpai   class 16 - learning - 041320Hpai   class 16 - learning - 041320
Hpai class 16 - learning - 041320
melendez321
 
Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...
Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...
Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...
Richard Thripp
 
What is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red Team
What is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red TeamWhat is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red Team
What is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red Team
MITRE ATT&CK
 
Automated Testing with Logic Apps and Specflow
Automated Testing with Logic Apps and SpecflowAutomated Testing with Logic Apps and Specflow
Automated Testing with Logic Apps and Specflow
BizTalk360
 
CCSC RM Alice Tutorial
CCSC RM Alice TutorialCCSC RM Alice Tutorial
CCSC RM Alice Tutorial
Karina Assiter
 
Interface Design for Elearning - Tips and Tricks
Interface Design for Elearning - Tips and TricksInterface Design for Elearning - Tips and Tricks
Interface Design for Elearning - Tips and Tricks
Julie Dirksen
 
Scrum training day 2
Scrum training day 2Scrum training day 2
Scrum training day 2
Elad Sofer
 
Performance Support
Performance SupportPerformance Support
Performance Support
Vanessa Aller
 
You have no idea what your users want - WordCamp PDX
You have no idea what your users want - WordCamp PDXYou have no idea what your users want - WordCamp PDX
You have no idea what your users want - WordCamp PDX
Evan Solomon
 
Life in a post-SCORM world for xAPI Party May2016
Life in a post-SCORM world for xAPI Party May2016Life in a post-SCORM world for xAPI Party May2016
Life in a post-SCORM world for xAPI Party May2016
TorranceLearning
 
Featuring Quizzes
Featuring QuizzesFeaturing Quizzes
Featuring Quizzes
Jo Hart
 
Telling your story: improving your presentation in 10 easy steps
Telling your story: improving your presentation in 10 easy stepsTelling your story: improving your presentation in 10 easy steps
Telling your story: improving your presentation in 10 easy steps
Fiona Passantino
 
Bringing Science to Software Development
Bringing Science to Software DevelopmentBringing Science to Software Development
Bringing Science to Software Development
Arty Starr
 
Scalable Learning Technologies for Big Data Mining
Scalable Learning Technologies for Big Data MiningScalable Learning Technologies for Big Data Mining
Scalable Learning Technologies for Big Data Mining
Gerard de Melo
 
More Aim, Less Blame: How to use postmortems to turn failures into something ...
More Aim, Less Blame: How to use postmortems to turn failures into something ...More Aim, Less Blame: How to use postmortems to turn failures into something ...
More Aim, Less Blame: How to use postmortems to turn failures into something ...
Daniel Kanchev
 
How to Use Agile to Move the Earth
How to Use Agile to Move the EarthHow to Use Agile to Move the Earth
How to Use Agile to Move the Earth
Ryan Martens
 
Web 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment ToolsWeb 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment Tools
Mohamed Amin Embi
 
A Better Way to Design & Build Immersive E Learning
A Better Way to Design & Build Immersive E LearningA Better Way to Design & Build Immersive E Learning
A Better Way to Design & Build Immersive E Learning
narchambeau
 
Hpai class 16 - learning - 041320
Hpai   class 16 - learning - 041320Hpai   class 16 - learning - 041320
Hpai class 16 - learning - 041320
melendez321
 
Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...
Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...
Thripp EME 2040 Slides on Microsoft Education Badges, PowerPoint Quiz, Comput...
Richard Thripp
 
What is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red Team
What is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red TeamWhat is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red Team
What is ATT&CK coverage, anyway? Breadth and depth analysis with Atomic Red Team
MITRE ATT&CK
 
Automated Testing with Logic Apps and Specflow
Automated Testing with Logic Apps and SpecflowAutomated Testing with Logic Apps and Specflow
Automated Testing with Logic Apps and Specflow
BizTalk360
 
CCSC RM Alice Tutorial
CCSC RM Alice TutorialCCSC RM Alice Tutorial
CCSC RM Alice Tutorial
Karina Assiter
 
Interface Design for Elearning - Tips and Tricks
Interface Design for Elearning - Tips and TricksInterface Design for Elearning - Tips and Tricks
Interface Design for Elearning - Tips and Tricks
Julie Dirksen
 
Scrum training day 2
Scrum training day 2Scrum training day 2
Scrum training day 2
Elad Sofer
 
You have no idea what your users want - WordCamp PDX
You have no idea what your users want - WordCamp PDXYou have no idea what your users want - WordCamp PDX
You have no idea what your users want - WordCamp PDX
Evan Solomon
 
Life in a post-SCORM world for xAPI Party May2016
Life in a post-SCORM world for xAPI Party May2016Life in a post-SCORM world for xAPI Party May2016
Life in a post-SCORM world for xAPI Party May2016
TorranceLearning
 
Featuring Quizzes
Featuring QuizzesFeaturing Quizzes
Featuring Quizzes
Jo Hart
 

More from Craig Trim (18)

Publishing Python to PyPI using Github Actions.pptx
Publishing Python to PyPI using Github Actions.pptxPublishing Python to PyPI using Github Actions.pptx
Publishing Python to PyPI using Github Actions.pptx
Craig Trim
 
Ontologies and the Semantic Web
Ontologies and the Semantic WebOntologies and the Semantic Web
Ontologies and the Semantic Web
Craig Trim
 
SAS Visual Process Flows
SAS Visual Process FlowsSAS Visual Process Flows
SAS Visual Process Flows
Craig Trim
 
Bluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationBluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web Application
Craig Trim
 
IBM Bluemix - Building a Project with Maven
IBM Bluemix - Building a Project with MavenIBM Bluemix - Building a Project with Maven
IBM Bluemix - Building a Project with Maven
Craig Trim
 
Question Types in Natural Language Processing
Question Types in Natural Language ProcessingQuestion Types in Natural Language Processing
Question Types in Natural Language Processing
Craig Trim
 
Jenkins on Docker
Jenkins on DockerJenkins on Docker
Jenkins on Docker
Craig Trim
 
IBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git ProjectIBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git Project
Craig Trim
 
Things and strings public
Things and strings   publicThings and strings   public
Things and strings public
Craig Trim
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning Algorithms
Craig Trim
 
PROV Overview
PROV OverviewPROV Overview
PROV Overview
Craig Trim
 
The Onomyicon
The OnomyiconThe Onomyicon
The Onomyicon
Craig Trim
 
Dependency parsing (2013)
Dependency parsing (2013)Dependency parsing (2013)
Dependency parsing (2013)
Craig Trim
 
Inference using owl 2.0 semantics
Inference using owl 2.0 semanticsInference using owl 2.0 semantics
Inference using owl 2.0 semantics
Craig Trim
 
An Introduction to the Jena API
An Introduction to the Jena APIAn Introduction to the Jena API
An Introduction to the Jena API
Craig Trim
 
The art of tokenization
The art of tokenizationThe art of tokenization
The art of tokenization
Craig Trim
 
Deep Parsing (2012)
Deep Parsing (2012)Deep Parsing (2012)
Deep Parsing (2012)
Craig Trim
 
Ontology and semantic web (2016)
Ontology and semantic web (2016)Ontology and semantic web (2016)
Ontology and semantic web (2016)
Craig Trim
 
Publishing Python to PyPI using Github Actions.pptx
Publishing Python to PyPI using Github Actions.pptxPublishing Python to PyPI using Github Actions.pptx
Publishing Python to PyPI using Github Actions.pptx
Craig Trim
 
Ontologies and the Semantic Web
Ontologies and the Semantic WebOntologies and the Semantic Web
Ontologies and the Semantic Web
Craig Trim
 
SAS Visual Process Flows
SAS Visual Process FlowsSAS Visual Process Flows
SAS Visual Process Flows
Craig Trim
 
Bluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationBluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web Application
Craig Trim
 
IBM Bluemix - Building a Project with Maven
IBM Bluemix - Building a Project with MavenIBM Bluemix - Building a Project with Maven
IBM Bluemix - Building a Project with Maven
Craig Trim
 
Question Types in Natural Language Processing
Question Types in Natural Language ProcessingQuestion Types in Natural Language Processing
Question Types in Natural Language Processing
Craig Trim
 
Jenkins on Docker
Jenkins on DockerJenkins on Docker
Jenkins on Docker
Craig Trim
 
IBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git ProjectIBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git Project
Craig Trim
 
Things and strings public
Things and strings   publicThings and strings   public
Things and strings public
Craig Trim
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning Algorithms
Craig Trim
 
Dependency parsing (2013)
Dependency parsing (2013)Dependency parsing (2013)
Dependency parsing (2013)
Craig Trim
 
Inference using owl 2.0 semantics
Inference using owl 2.0 semanticsInference using owl 2.0 semantics
Inference using owl 2.0 semantics
Craig Trim
 
An Introduction to the Jena API
An Introduction to the Jena APIAn Introduction to the Jena API
An Introduction to the Jena API
Craig Trim
 
The art of tokenization
The art of tokenizationThe art of tokenization
The art of tokenization
Craig Trim
 
Deep Parsing (2012)
Deep Parsing (2012)Deep Parsing (2012)
Deep Parsing (2012)
Craig Trim
 
Ontology and semantic web (2016)
Ontology and semantic web (2016)Ontology and semantic web (2016)
Ontology and semantic web (2016)
Craig Trim
 

Recently uploaded (20)

Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdfML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
rameshwarchintamani
 
introduction technology technology tec.pptx
introduction technology technology tec.pptxintroduction technology technology tec.pptx
introduction technology technology tec.pptx
Iftikhar70
 
Working with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to ImplementationWorking with USDOT UTCs: From Conception to Implementation
Working with USDOT UTCs: From Conception to Implementation
Alabama Transportation Assistance Program
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...
OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...
OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...
ijdmsjournal
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
PPT on Sattelite satellite & Radar(1).pptx
PPT on Sattelite satellite & Radar(1).pptxPPT on Sattelite satellite & Radar(1).pptx
PPT on Sattelite satellite & Radar(1).pptx
navneet19791
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
Machine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATIONMachine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATION
DarrinBright1
 
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
Guru Nanak Technical Institutions
 
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdfIBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
VigneshPalaniappanM
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 
vtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdfvtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdf
RaghavaGD1
 
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdfLittle Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
Little Known Ways To 3 Best sites to Buy Linkedin Accounts.pdf
gori42199
 
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdfML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
ML_Unit_V_RDC_ASSOCIATION AND DIMENSIONALITY REDUCTION.pdf
rameshwarchintamani
 
introduction technology technology tec.pptx
introduction technology technology tec.pptxintroduction technology technology tec.pptx
introduction technology technology tec.pptx
Iftikhar70
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...
OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...
OPTIMIZING DATA INTEROPERABILITY IN AGILE ORGANIZATIONS: INTEGRATING NONAKA’S...
ijdmsjournal
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
PPT on Sattelite satellite & Radar(1).pptx
PPT on Sattelite satellite & Radar(1).pptxPPT on Sattelite satellite & Radar(1).pptx
PPT on Sattelite satellite & Radar(1).pptx
navneet19791
 
hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .hypermedia_system_revisit_roy_fielding .
hypermedia_system_revisit_roy_fielding .
NABLAS株式会社
 
Machine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATIONMachine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATION
DarrinBright1
 
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdfIBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
IBAAS 2023 Series_Lecture 8- Dr. Nandi.pdf
VigneshPalaniappanM
 
Artificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptxArtificial intelligence and machine learning.pptx
Artificial intelligence and machine learning.pptx
rakshanatarajan005
 
vtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdfvtc2018fall_otfs_tutorial_presentation_1.pdf
vtc2018fall_otfs_tutorial_presentation_1.pdf
RaghavaGD1
 

Bluemix NL Classifier Tutorial

  • 1. Configuring the Classifier on IBM Bluemix craigtrim@gmail.com
  • 2. QUESTION TYPE CLASSIFICATION DATA PREPARATION ... Part 1
  • 3. 1. Verification: invites a yes or no answer. 2. Disjunctive: Is X, Y, or Z the case? 3. Concept completion: Who? What? When? Where? 4. Example: What is an example of X? 5. Feature specification: What are the properties of X? 6. Quantification: How much? How many? 7. Definition: What does X mean? 8. Comparison: How is X similar to Y? 9. Interpretation: What is the significance of X? 10. Causal antecedent: Why/how did X occur? 11. Causal consequence: What next? What if? 12. Goal orientation: Why did an agent do X? 13. Instrumental/procedural: How did an agent do X? 14. Enablement: What enabled X to occur? 15. Expectation: Why didn't X occur? 16. Judgmental: What do you think of X?  Questions are often generated by a person's knowledge deficits and cognitive disequilibrium, which occurs when there are obstacles to goals, contradictions, impasses during problem solving, anomalous information, and uncertainty. Question Types
  • 4. A total of 5 points are distributed for each question Questions are gathered from public domain sources off the internet Point distribution is manual Classification
  • 5. Python script to take CSV formatted data from Excel Spreadsheet Creates a CSV file that the NL Classifier can understand Classification
  • 6. DEPLOYING TO BLUEMIX IN 5 SIMPLE STEPS ... Part 2
  • 7. Step 1: Access the Service (Slide 1) IBM Bluemix Homepage
  • 8. Step 1: Access the Service (Slide 2) IBM Bluemix Homepage
  • 9. Step 1: Access the Service (Slide 3)
  • 10. Step 1: Access the Service (Slide 4)
  • 11. Step 1: Access the Service (Slide 5)
  • 12. Step 1: Access the Service (Slide 6)
  • 13. Step 2: Add the Service (Slide 1)
  • 14. Step 3: Access the Toolkit (Slide 1)
  • 15. Step 3: Access the Toolkit (Slide 2)
  • 16. Step 4: Deploy to Bluemix (Slide 1)
  • 17. Step 4: Deploy to Bluemix (Slide 2)
  • 18. Step 4: Deploy to Bluemix (Slide 3)
  • 19. Step 5: View the App (Slide 1)
  • 20. Step 5: View the App (Slide 2)
  • 21. Step 5: View the App (Slide 3)
  • 22. Step 5: View the App (Slide 3)
  • 23. Step 5: View the App (Slide 4)
  • 24. Step 5: View the App (Slide 5)
  • 25. TRAINING A CLASSIFIER IN 5 SIMPLE STEPS ... Part 3
  • 26. Step 1: Train a Classifier (Slide 1)
  • 27. Step 1: Train a Classifier (Slide 2)
  • 28. Step 2: Prepare the Data (Slide 1)
  • 29. Format • The data format is: text,class • The text is the actual question or user statement; some real world example • The class is the classification of this real world example – Only [A-Za-z0-9] are permitted – Use “myClassName” rather than “my_class_name” • The text and the class are comma separated, with the text occurring first Example what is the difference between being alive and truly living?,comparison "when is it time to stop calculating risk and rewards and just go ahead and do what you know is right?”,conceptCompletion "when is it time to stop calculating risk and rewards and just go ahead and do what you know is right?”,interpretation "if we learn from our mistakes why are we always so afraid to make a mistake?”,enablement Step 2: Prepare the Data (Slide 2)
  • 30. Step 3: Import the Data (Slide 1)
  • 31. Step 4: Train the Classifier (Slide 1)
  • 32. Step 4: Train the Classifier (Slide 2)
  • 33. Step 4: Train the Classifier (Slide 3)
  • 34. Step 5: Use the Classifier (Slide 1)
  • 35. Step 5: Use the Classifier (Slide 3)
  • 36. Step 5: Use the Classifier (Slide 4)
  • 37. Step 5: Use the Classifier (Slide 4)
  • 38. Step 5: Use the Classifier (Slide 4)
  • 40. Optional: Rename the Service (Slide 1)
  • 41. Optional: Add another Route (Slide 1)
  • 42. Optional: Add another Route (Slide 2)
  • 43. @RequestMapping( value="/classify", params="text", method=RequestMethod.GET, produces=MediaType.APPLICATION_JSON_VALUE) @ResponseBody public String classify( @RequestParam("text") String text) { NaturalLanguageClassifier classifierService = new NaturalLanguageClassifier(); classifierService.setUsernameAndPassword(username, password); Classification classification = classifierService.classify(route, text); ObjectMapper mapper = new ObjectMapper(); try{ return mapper.writerWithDefaultPrettyPrinter(). writeValueAsString(classification); } catch(JsonProcessingException e){ logger.error(e); } } Optional: Java Code (Slide 1) <dependency> <groupId>com.ibm.watson.developer_cloud</groupId> <artifactId>java-wrapper</artifactId> <version>1.1.0</version> </dependency>

Editor's Notes

  • #4: Action: “Click Solutions”
  • #6: A total of 5 points are distributed for each question
  • #8: Action: “Click Solutions”
  • #9: Action: Click “Watson”
  • #10: Action: Scroll down
  • #11: Action: Click “View all Services”
  • #12: Action: Scroll Down
  • #13: Action: Click on “Natural Language Classifier”
  • #14: Action: Click on Create
  • #15: Action: Click on “Access Beta Toolkit”
  • #16: Action: scroll down
  • #17: Action: Click “Deploy to Bluemix”
  • #18: Action:
  • #19: Action:
  • #20: Action:
  • #21: Action:
  • #22: Action:
  • #23: Action:
  • #24: Action:
  • #25: Action:
  • #27: Action:
  • #28: Action:
  • #29: Action:
  • #30: Action:
  • #31: Action:
  • #32: Action:
  • #33: Action:
  • #34: Action:
  • #35: Action:
  • #36: Action:
  • #37: Action:
  • #38: Action:
  • #39: Action:
  • #41: Action:
  • #42: Action:
  • #43: Action:
  • #44: Action:
  翻译: