SlideShare a Scribd company logo
1 of 43
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

Foot valve for industrial pump applications
Foot valve for industrial pump applicationsFoot valve for industrial pump applications
Foot valve for industrial pump applicationsM.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 Isolationmaruyama097
 
加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考えるYu(u)ki IWABUCHI
 
SAS University Edition - Getting Started
SAS University Edition - Getting StartedSAS University Edition - Getting Started
SAS University Edition - Getting StartedCraig 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 CloudDaniel Martin
 
OpenShift v3 Technical Introduction
OpenShift v3 Technical IntroductionOpenShift v3 Technical Introduction
OpenShift v3 Technical IntroductionEtsuji Nakai
 

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
 
DOVE: A Case Study
DOVE: A Case StudyDOVE: A Case Study
DOVE: A Case Study
 
Focus group (4) (2)
Focus group (4) (2)Focus group (4) (2)
Focus group (4) (2)
 
東南アジアにおけるEC市場の概況と消費動向(2015年)
東南アジアにおけるEC市場の概況と消費動向(2015年)東南アジアにおけるEC市場の概況と消費動向(2015年)
東南アジアにおけるEC市場の概況と消費動向(2015年)
 
ContainerとName Space Isolation
ContainerとName Space IsolationContainerとName Space Isolation
ContainerとName Space Isolation
 
加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える加法よりも低レベルな演算を考える
加法よりも低レベルな演算を考える
 
SAS University Edition - Getting Started
SAS University Edition - Getting StartedSAS University Edition - Getting Started
SAS University Edition - Getting Started
 
TensorFlow 入門
TensorFlow 入門TensorFlow 入門
TensorFlow 入門
 
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
 
OpenShift v3 Technical Introduction
OpenShift v3 Technical IntroductionOpenShift v3 Technical Introduction
OpenShift v3 Technical Introduction
 

Similar to Bluemix NL Classifier Tutorial

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 stepsFiona Passantino
 
Bringing Science to Software Development
Bringing Science to Software DevelopmentBringing Science to Software Development
Bringing Science to Software DevelopmentArty 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 MiningGerard 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 EarthRyan Martens
 
Web 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment ToolsWeb 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment ToolsMohamed 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 Learningnarchambeau
 
Hpai class 16 - learning - 041320
Hpai   class 16 - learning - 041320Hpai   class 16 - learning - 041320
Hpai class 16 - learning - 041320melendez321
 
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 TeamMITRE 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 SpecflowBizTalk360
 
CCSC RM Alice Tutorial
CCSC RM Alice TutorialCCSC RM Alice Tutorial
CCSC RM Alice TutorialKarina 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 TricksJulie Dirksen
 
Scrum training day 2
Scrum training day 2Scrum training day 2
Scrum training day 2Elad 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 PDXEvan 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 May2016TorranceLearning
 
Featuring Quizzes
Featuring QuizzesFeaturing Quizzes
Featuring QuizzesJo Hart
 

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
 
Bringing Science to Software Development
Bringing Science to Software DevelopmentBringing Science to Software Development
Bringing Science to Software Development
 
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
 
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 ...
 
5 why training_presentation
5 why training_presentation5 why training_presentation
5 why training_presentation
 
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
 
Web 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment ToolsWeb 2.0 Quiz & Assessment Tools
Web 2.0 Quiz & Assessment Tools
 
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
 
Stage6
Stage6Stage6
Stage6
 
Hpai class 16 - learning - 041320
Hpai   class 16 - learning - 041320Hpai   class 16 - learning - 041320
Hpai class 16 - learning - 041320
 
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...
 
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
 
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
 
CCSC RM Alice Tutorial
CCSC RM Alice TutorialCCSC RM Alice Tutorial
CCSC RM Alice Tutorial
 
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
 
Scrum training day 2
Scrum training day 2Scrum training day 2
Scrum training day 2
 
Performance Support
Performance SupportPerformance Support
Performance Support
 
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
 
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
 
Featuring Quizzes
Featuring QuizzesFeaturing Quizzes
Featuring Quizzes
 

More from 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.pptxCraig Trim
 
Ontologies and the Semantic Web
Ontologies and the Semantic WebOntologies and the Semantic Web
Ontologies and the Semantic WebCraig Trim
 
SAS Visual Process Flows
SAS Visual Process FlowsSAS Visual Process Flows
SAS Visual Process FlowsCraig Trim
 
Bluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationBluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationCraig 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 MavenCraig Trim
 
Question Types in Natural Language Processing
Question Types in Natural Language ProcessingQuestion Types in Natural Language Processing
Question Types in Natural Language ProcessingCraig Trim
 
Jenkins on Docker
Jenkins on DockerJenkins on Docker
Jenkins on DockerCraig Trim
 
IBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git ProjectIBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git ProjectCraig Trim
 
Things and strings public
Things and strings   publicThings and strings   public
Things and strings publicCraig Trim
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsCraig 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 semanticsCraig Trim
 
An Introduction to the Jena API
An Introduction to the Jena APIAn Introduction to the Jena API
An Introduction to the Jena APICraig Trim
 
The art of tokenization
The art of tokenizationThe art of tokenization
The art of tokenizationCraig 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
 

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
 
Ontologies and the Semantic Web
Ontologies and the Semantic WebOntologies and the Semantic Web
Ontologies and the Semantic Web
 
SAS Visual Process Flows
SAS Visual Process FlowsSAS Visual Process Flows
SAS Visual Process Flows
 
Bluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web ApplicationBluemix - Deploying a Java Web Application
Bluemix - Deploying a Java Web Application
 
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
 
Question Types in Natural Language Processing
Question Types in Natural Language ProcessingQuestion Types in Natural Language Processing
Question Types in Natural Language Processing
 
Jenkins on Docker
Jenkins on DockerJenkins on Docker
Jenkins on Docker
 
IBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git ProjectIBM Bluemix: Creating a Git Project
IBM Bluemix: Creating a Git Project
 
Things and strings public
Things and strings   publicThings and strings   public
Things and strings public
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning Algorithms
 
PROV Overview
PROV OverviewPROV Overview
PROV Overview
 
The Onomyicon
The OnomyiconThe Onomyicon
The Onomyicon
 
Dependency parsing (2013)
Dependency parsing (2013)Dependency parsing (2013)
Dependency parsing (2013)
 
Inference using owl 2.0 semantics
Inference using owl 2.0 semanticsInference using owl 2.0 semantics
Inference using owl 2.0 semantics
 
An Introduction to the Jena API
An Introduction to the Jena APIAn Introduction to the Jena API
An Introduction to the Jena API
 
The art of tokenization
The art of tokenizationThe art of tokenization
The art of tokenization
 
Deep Parsing (2012)
Deep Parsing (2012)Deep Parsing (2012)
Deep Parsing (2012)
 
Ontology and semantic web (2016)
Ontology and semantic web (2016)Ontology and semantic web (2016)
Ontology and semantic web (2016)
 

Recently uploaded

MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 

Recently uploaded (20)

Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 

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

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