From d7ec888d687725d47b8789578f0bd96876b475b4 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Sun, 7 Aug 2022 22:54:35 -0400 Subject: rebuild --- ...21-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 37 ++++++++++++---------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html') diff --git a/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html b/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html index 0eea323..0b307fd 100644 --- a/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html +++ b/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html @@ -89,20 +89,20 @@ I created a sample JSON with only 3 examples (I know, very less, but works for a

Screenshot of Sample Dataset

-
[
-    {
-        "tokens": ["Tell","me","about","the","drug","Aspirin","."],
-        "labels": ["NONE","NONE","NONE","NONE","NONE","COMPOUND","NONE"]
-    },
-    {
-        "tokens": ["Please","tell","me","information","about","the","compound","salicylic","acid","."],
-        "labels": ["NONE","NONE","NONE","NONE","NONE","NONE","NONE","COMPOUND","COMPOUND","NONE"]
-    },
-    {
-        "tokens": ["Information","about","the","compound","Ibuprofen","please","."],
-        "labels": ["NONE","NONE","NONE","NONE","COMPOUND","NONE","NONE"]
-    }
-]
+
[
+    {
+        "tokens": ["Tell","me","about","the","drug","Aspirin","."],
+        "labels": ["NONE","NONE","NONE","NONE","NONE","COMPOUND","NONE"]
+    },
+    {
+        "tokens": ["Please","tell","me","information","about","the","compound","salicylic","acid","."],
+        "labels": ["NONE","NONE","NONE","NONE","NONE","NONE","NONE","COMPOUND","COMPOUND","NONE"]
+    },
+    {
+        "tokens": ["Information","about","the","compound","Ibuprofen","please","."],
+        "labels": ["NONE","NONE","NONE","NONE","COMPOUND","NONE","NONE"]
+    }
+]
 

Screenshot of Create ML Text Classifier

@@ -208,9 +208,14 @@ Otherwise, it calls the custom action.

If I ever release a part-2, it will either be about implementing this in Tensorflow.JS or an iOS app using SwiftUI ;)

-
+ +
+ +
+ -- cgit v1.2.3