dynamic-learning-model 1.6__tar.gz → 2.0.1__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.
- {dynamic_learning_model-1.6/dynamic_learning_model.egg-info → dynamic_learning_model-2.0.1}/PKG-INFO +2 -2
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/dlm/DLM.py +5 -7
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1/dynamic_learning_model.egg-info}/PKG-INFO +2 -2
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/setup.py +2 -2
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/LICENSE +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/README.md +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/dlm/__init__.py +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/dynamic_learning_model.egg-info/SOURCES.txt +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/dynamic_learning_model.egg-info/dependency_links.txt +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/dynamic_learning_model.egg-info/requires.txt +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/dynamic_learning_model.egg-info/top_level.txt +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/pyproject.toml +0 -0
- {dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1}/setup.cfg +0 -0
{dynamic_learning_model-1.6/dynamic_learning_model.egg-info → dynamic_learning_model-2.0.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dynamic-learning-model
|
|
3
|
-
Version: 1
|
|
3
|
+
Version: 2.0.1
|
|
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
|
|
@@ -9,7 +9,7 @@ License: MIT
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: nltk
|
|
@@ -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
|
|
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
|
|
{dynamic_learning_model-1.6 → dynamic_learning_model-2.0.1/dynamic_learning_model.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dynamic-learning-model
|
|
3
|
-
Version: 1
|
|
3
|
+
Version: 2.0.1
|
|
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
|
|
@@ -9,7 +9,7 @@ License: MIT
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: nltk
|
|
@@ -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
|
|
8
|
+
version='2.0.1',
|
|
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.',
|
|
@@ -25,6 +25,6 @@ setup(
|
|
|
25
25
|
'Operating System :: OS Independent',
|
|
26
26
|
'License :: OSI Approved :: MIT License',
|
|
27
27
|
],
|
|
28
|
-
python_requires='>=3.
|
|
28
|
+
python_requires='>=3.12',
|
|
29
29
|
license='MIT',
|
|
30
30
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|