dynamic-learning-model 3.3.3__tar.gz → 3.3.4__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-3.3.3 → dynamic_learning_model-3.3.4}/PKG-INFO +1 -1
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dlm/DLM.py +24 -33
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dynamic_learning_model.egg-info/PKG-INFO +1 -1
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/setup.py +1 -1
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/LICENSE +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/README.md +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dlm/DLM_Compute_Model.py +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dlm/DLM_Memory_Model.py +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dlm/__init__.py +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dynamic_learning_model.egg-info/SOURCES.txt +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dynamic_learning_model.egg-info/dependency_links.txt +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dynamic_learning_model.egg-info/requires.txt +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/dynamic_learning_model.egg-info/top_level.txt +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/pyproject.toml +0 -0
- {dynamic_learning_model-3.3.3 → dynamic_learning_model-3.3.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dynamic-learning-model
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.4
|
|
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
|
|
@@ -20,7 +20,6 @@ class DLM:
|
|
|
20
20
|
__category = None # categorizes each question for efficient retrieval and basic NLG in SQL DB
|
|
21
21
|
__nlp = None # Spacy NLP analysis
|
|
22
22
|
__tone = None # sentimental tone of user query
|
|
23
|
-
__trainingPwd = "371507" # password to enter training mode
|
|
24
23
|
__mode = None # either "learn" or "apply"
|
|
25
24
|
__unsure_while_thinking = False # if uncertain while thinking, then it will let the user know that
|
|
26
25
|
__nlp_similarity_value = None # saves the similarity value by doing SpaCy calculation (for debugging)
|
|
@@ -394,40 +393,32 @@ class DLM:
|
|
|
394
393
|
'learn' for training mode (to train the bot with queries).
|
|
395
394
|
'apply' for trained model to choose "compute" or "memory" mode.
|
|
396
395
|
Behavior:
|
|
397
|
-
- If mode is 'learn',
|
|
398
|
-
- If mode is 'apply',
|
|
396
|
+
- If mode is 'learn', displays mandatory training instructions that must be understood.
|
|
397
|
+
- If mode is 'apply', allows model to answer queries using trained data and compute model.
|
|
399
398
|
"""
|
|
400
399
|
if mode.lower() == "learn":
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
confirmation = input(
|
|
424
|
-
"Make sure to understand and note these instructions somewhere as the generated responses would get corrupt otherwise.\nType 'Y' if you understood: ")
|
|
425
|
-
while confirmation.lower() != "y": # trainers must understand the instructions above
|
|
426
|
-
confirmation = input("You cannot proceed to train without understanding the instructions aforementioned. Type 'Y' to continue: ")
|
|
427
|
-
self.__mode = "learn"
|
|
428
|
-
print("\n")
|
|
429
|
-
self.__loading_animation("Logging in as Trainer", 0.6)
|
|
430
|
-
print("\n")
|
|
400
|
+
# trainers must understand these rules as DLM can generate bad responses if these instructions are neglected
|
|
401
|
+
print(
|
|
402
|
+
f"\n\n{'\033[31m'}MAKE SURE TO UNDERSTAND THE FOLLOWING ANSWER FORMAT EXPECTED FOR EACH CATEGORY FOR THE BOT TO LEARN ACCURATELY:{'\033[0m'}\n")
|
|
403
|
+
print("*'yesno': Make sure to start your answer responses with \"yes\" or \"no\" ONLY")
|
|
404
|
+
print(
|
|
405
|
+
"*'process': Each answer must have three steps for your responses, separated by \";\" (semicolon)")
|
|
406
|
+
print(
|
|
407
|
+
"*'definition': Make sure to not mention the WORD/PHRASE to be defined & always start your response here with \"the\" only")
|
|
408
|
+
print("*'deadline': Only include the deadline date, as an example, \"March 31st 2025\"")
|
|
409
|
+
print("*'location': Mention the location only, nothing else. For example, \"The FAFSA.Gov website\"")
|
|
410
|
+
print("*'generic': Format doesn't matter for this, give your answer in any comprehensive format")
|
|
411
|
+
print(
|
|
412
|
+
"*'eligibility': Make sure to ONLY start the response with a pronoun like \"you\", \"they\", \"he\", \"she\", etc\n\n")
|
|
413
|
+
|
|
414
|
+
confirmation = input(
|
|
415
|
+
"Make sure to understand and note these instructions somewhere as the generated responses would get corrupt otherwise.\nType 'Y' if you understood: ")
|
|
416
|
+
while confirmation.lower() != "y": # trainers must understand the instructions above
|
|
417
|
+
confirmation = input("You cannot proceed to train without understanding the instructions aforementioned. Type 'Y' to continue: ")
|
|
418
|
+
self.__mode = "learn"
|
|
419
|
+
print("\n")
|
|
420
|
+
self.__loading_animation("Logging in as Trainer", 0.6)
|
|
421
|
+
print("\n")
|
|
431
422
|
else:
|
|
432
423
|
self.__mode = "apply"
|
|
433
424
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dynamic-learning-model
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.4
|
|
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='3.3.
|
|
8
|
+
version='3.3.4',
|
|
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.',
|
|
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
|
|
File without changes
|
|
File without changes
|