dynamic-learning-model 1.6__tar.gz → 2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dynamic-learning-model
3
- Version: 1.6
3
+ Version: 2.0
4
4
  Summary: A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.
5
5
  Home-page: https://github.com/VigneshT24/Dynamic_Learning_Model
6
6
  Author: Vignesh Thondikulam
@@ -1,4 +1,3 @@
1
- # Dynamic-Learning Model (DLM) bot that learns how to respond to questions by learning from user input/expectations, as well as computationally solve arithmetics
2
1
  import difflib
3
2
  import string
4
3
  import random
@@ -343,7 +342,7 @@ class DLM:
343
342
  mode (str): The access mode. Options:
344
343
  'learn' for training mode (to train the bot with queries),
345
344
  'recall' for recalling learned queries (to use it in your deployment/production program),
346
- 'compute' for mathematical queries (for arithmetic or conversion queries).
345
+ 'compute' for mathematical queries (for arithmetic, conversion, or geometric queries).
347
346
  db_filename (str): The SQLite database file used to train and retrieve
348
347
  question-answer-category triples.
349
348
 
@@ -450,7 +449,7 @@ class DLM:
450
449
  conn.commit()
451
450
  conn.close()
452
451
 
453
- def __get_category(self, exact_question): # returns category as a string
452
+ def __get_category(self, exact_question): # returns category as a string or None
454
453
  """
455
454
  Retrieve the category (question type) associated with a specific question from the SQLite knowledge base.
456
455
 
@@ -478,7 +477,7 @@ class DLM:
478
477
  else:
479
478
  return None # question not found
480
479
 
481
- def __get_specific_question(self, exact_answer): # returns question as a string
480
+ def __get_specific_question(self, exact_answer): # returns question as a string or None
482
481
  """
483
482
  Retrieve the original question associated with a given answer from the SQLite knowledge base.
484
483
 
@@ -610,7 +609,7 @@ class DLM:
610
609
  else:
611
610
  self.__tone = ""
612
611
 
613
- def __geometric_calculation(self, filtered_query, display_thought):
612
+ def __geometric_calculation(self, filtered_query, display_thought): # returns float result or None
614
613
  """
615
614
  Perform geometric problems that will be called inside perform_advanced_CoT
616
615
 
@@ -1177,8 +1176,7 @@ class DLM:
1177
1176
  print(
1178
1177
  f"{'\033[34m'}That might've confused me a bit, maybe try leaving one of those out or rephrase it to make it clearer?{'\033[0m'}")
1179
1178
 
1180
- def __generate_thought(self, filtered_query, best_match_question, best_match_answer, highest_similarity,
1181
- display_thought): # no return, void
1179
+ def __generate_thought(self, filtered_query, best_match_question, best_match_answer, highest_similarity, display_thought): # no return, void
1182
1180
  """
1183
1181
  Simulate a Chain-of-Thought (CoT) reasoning process by printing the bot's internal analysis.
1184
1182
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dynamic-learning-model
3
- Version: 1.6
3
+ Version: 2.0
4
4
  Summary: A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.
5
5
  Home-page: https://github.com/VigneshT24/Dynamic_Learning_Model
6
6
  Author: Vignesh Thondikulam
@@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
5
5
 
6
6
  setup(
7
7
  name='dynamic-learning-model',
8
- version='1.6',
8
+ version='2.0',
9
9
  author='Vignesh Thondikulam',
10
10
  author_email='vignesh.tho2006@gmail.com',
11
11
  description='A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.',