From f5faa2ef095f035110f83e17da0b35d3a34d6b97 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 17 Feb 2024 19:52:53 -0700 Subject: bump --- docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 17a7e90..9b90d53 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 @@ -26,7 +26,7 @@ - + @@ -35,6 +35,7 @@ home | about/links | posts | +3D designs | RSS Feed | -- cgit v1.2.3 From f6d2141a480dd6b5b8ee0e48d43bb64773232791 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 26 Mar 2024 23:38:14 -0600 Subject: add header ids --- .../2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 9b90d53..5836c49 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 @@ -6,13 +6,13 @@ - Making a Crude ML Powered Chatbot in Swift using CoreML + id="making-a-crude-ml-powered-chatbot-in-swift-using-coreml">Making a Crude ML Powered Chatbot in Swift using CoreML - - + Making a Crude ML Powered Chatbot in Swift using CoreML" /> + Making a Crude ML Powered Chatbot in Swift using CoreML" /> @@ -44,7 +44,7 @@
-

Making a Crude ML Powered Chatbot in Swift using CoreML

+

Making a Crude ML Powered Chatbot in Swift using CoreML

A chatbot/virtual assistant, on paper, looks easy to build. The user says something, the programs finds the best action, checks if additional input is required and sends back the output. @@ -52,7 +52,7 @@ To do this in Swift, I used two separate ML Models created using Apple's Create First is a Text Classifier to classify intent, and the other a word tagger for extracting input from the input message. Disclaimer: This is a very crude proof-of-concept, but it does work.

-

Text Classifier

+

Text Classifier

I opened a CSV file and added some sample entries, with a corresponding label.

@@ -84,7 +84,7 @@ i love you,banter

Screenshot of Create ML Text Classifier

-

Word Tagging

+

Word Tagging

This is useful to extract the required variables directly from the user's input. This model will be only called if the intent from the classifier is a custom action. @@ -112,7 +112,7 @@ I created a sample JSON with only 3 examples (I know, very less, but works for a

Screenshot of Create ML Text Classifier

-

Time to Get Swift-y

+

Time to Get Swift-y

The initial part is easy, importing CoreML and NaturalLanguage and then initializing the models and the tagger.

-- cgit v1.2.3 From 9e620084e57378952c1a7f8e0a772ebebd18932b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 20:35:09 -0600 Subject: quick fix --- docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 6 +++--- 1 file changed, 3 insertions(+), 3 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 5836c49..f4c779f 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 @@ -6,13 +6,13 @@ - id="making-a-crude-ml-powered-chatbot-in-swift-using-coreml">Making a Crude ML Powered Chatbot in Swift using CoreML + Making a Crude ML Powered Chatbot in Swift using CoreML - Making a Crude ML Powered Chatbot in Swift using CoreML" /> - Making a Crude ML Powered Chatbot in Swift using CoreML" /> + + -- cgit v1.2.3 From 01ff93c9c16867216f2d249664803860e1d6d5eb Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 22:49:40 -0600 Subject: generate new theme --- ...21-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 55 +++++++++++++++------- 1 file changed, 37 insertions(+), 18 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 f4c779f..d6d2ecc 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 @@ -2,14 +2,26 @@ - + + + + + Making a Crude ML Powered Chatbot in Swift using CoreML + + + + + + + - Making a Crude ML Powered Chatbot in Swift using CoreML - @@ -29,21 +41,27 @@ - -
-
+ + +
-
- +

Making a Crude ML Powered Chatbot in Swift using CoreML

A chatbot/virtual assistant, on paper, looks easy to build. @@ -221,14 +239,15 @@ 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 ;)

+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
-- cgit v1.2.3 From de19543d7fb44d343b052dc9b34ede78620c4a46 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 23:36:55 -0600 Subject: Generate --- .../2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 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 d6d2ecc..25bb83c 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 @@ -46,7 +46,7 @@ + +
-- cgit v1.2.3 From a982ceab0b45609991179b3020a00260eed6f798 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 23:45:59 -0600 Subject: css --- docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 1 + 1 file changed, 1 insertion(+) (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 25bb83c..de25fe8 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 @@ -5,6 +5,7 @@ + Making a Crude ML Powered Chatbot in Swift using CoreML -- cgit v1.2.3