dynamic-learning-model 1.2__tar.gz → 1.2.5__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.2
3
+ Version: 1.2.5
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
@@ -491,7 +491,9 @@ class DLM:
491
491
  float(word) # Try to treat as number
492
492
  unique_words.append(word) # Keep numeric strings (duplicates allowed)
493
493
  except ValueError:
494
- if word not in seen:
494
+ if any(word in keywords for keywords in self.__computation_identifiers.values()):
495
+ unique_words.append(word) # Keep identifier words (duplicates allowed)
496
+ elif word not in seen:
495
497
  seen.add(word)
496
498
  unique_words.append(word)
497
499
 
@@ -606,6 +608,7 @@ class DLM:
606
608
  continue
607
609
  if fq_l in {"+", "-", "*", "/"}:
608
610
  operands_mentioned.append(fq_l)
611
+ keywords_mentioned.append(fq_l)
609
612
  continue # move on to the next token
610
613
  for operand, keywords in self.__computation_identifiers.items():
611
614
  for kw in keywords:
@@ -744,7 +747,6 @@ class DLM:
744
747
  else:
745
748
  if '=' in operands_mentioned:
746
749
  operands_mentioned = [op for op in operands_mentioned if op != '=']
747
- operands_mentioned = list(dict.fromkeys(operands_mentioned))
748
750
 
749
751
  print("\n")
750
752
  if any(not lst for lst in (num_mentioned, operands_mentioned)) or (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dynamic-learning-model
3
- Version: 1.2
3
+ Version: 1.2.5
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.2',
8
+ version='1.2.5',
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.',