-
Ask a question about the weather
-
Watch the Natural Language Classifier
+
+ Ask a question about the weather
+
+
+ Watch the Natural Language Classifier
categorize your weather-related question. In this demo, the classifier is
trained to determine whether the question is related
- to temperature
or
- conditions
.
- The output includes
- the top classification and a confidence score.
+ to temperature
or conditions
.
+ The output includes the top classification and a confidence score.
@@ -81,7 +82,7 @@ export default React.createClass({
-
+
* This system is for demonstration purposes only and is not intended to process
Personal Data. No Personal Data is to be entered into this system as it may not
have the necessary controls in place to meet the requirements of the General Data
@@ -89,7 +90,9 @@ export default React.createClass({
-
Sample questions
+
+ Sample questions
+
@@ -137,7 +140,8 @@ export default React.createClass({
-
The classifier often scores well with terms that it hasn't
+
+ The classifier often scores well with terms that it hasn't
been trained on. In the sample questions, the words "sleet," or
"foggy," are not part of the
training data
- , yet the classifier correctly handles questions about them.
+ >
+ training data
+
+ , yet the classifier correctly handles questions about them.
diff --git a/views/layout.jsx b/views/layout.jsx
index 07e76ae..6a4dbd0 100644
--- a/views/layout.jsx
+++ b/views/layout.jsx
@@ -6,10 +6,13 @@ import { Header, Jumbotron } from 'watson-react-components';
const DESCRIPTION = 'Natural Language Classifier applies deep learning techniques to make predictions about the best predefined classes for short sentences or phrases.';
function Layout(props) {
+ const { children } = props;
return (
-
Natural Language Classifier Demo
+
+ Natural Language Classifier Demo
+
@@ -38,10 +41,10 @@ function Layout(props) {
description={DESCRIPTION}
/>
- {props.children}
+ {children}
- { props.bluemixAnalytics ? : null }
+
);
@@ -49,7 +52,6 @@ function Layout(props) {
Layout.propTypes = {
children: PropTypes.object.isRequired,
- bluemixAnalytics: PropTypes.bool.isRequired,
};
export default Layout;
diff --git a/views/output.jsx b/views/output.jsx
index c6047dc..0bfee9a 100644
--- a/views/output.jsx
+++ b/views/output.jsx
@@ -5,8 +5,8 @@ export default function (prop) {
return (
{(prop.data || prop.error) ?
Output
: null}
- {prop.data ?
- (
+ {prop.data
+ ? (