acuity-framework 3.1.0__tar.gz → 3.1.2__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.
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/PKG-INFO +1 -1
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/__init__.py +1 -1
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/vectorizer.py +4 -3
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity_framework.egg-info/PKG-INFO +1 -1
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/pyproject.toml +1 -1
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/setup.py +1 -1
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/LICENSE +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/README.md +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/config.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/__init__.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/interfaces.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/ner_crf.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/ner_transformer.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/pipeline.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/postprocessing.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/preprocessing.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/extraction/rules.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/__init__.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/engine.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/interfaces.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/proximity.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/ranker.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/recommendation/similarity.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/scraper/__init__.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/scraper/interfaces.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/scraper/scraper.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/scraper/utils.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/utils.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/verification/__init__.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity/verification/bplo.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity_framework.egg-info/SOURCES.txt +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity_framework.egg-info/dependency_links.txt +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity_framework.egg-info/requires.txt +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity_framework.egg-info/top_level.txt +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/setup.cfg +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/tests/test_extraction.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/tests/test_recommendation.py +0 -0
- {acuity_framework-3.1.0 → acuity_framework-3.1.2}/tests/test_verification.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: acuity-framework
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.2
|
|
4
4
|
Summary: ACUITY — A machine learning framework for extracting, verifying, and recommending local micro-enterprise profiles from unstructured community posts.
|
|
5
5
|
Author: ACUITY Research Team
|
|
6
6
|
License: MIT
|
|
@@ -51,8 +51,8 @@ class CustomTfidfVectorizer:
|
|
|
51
51
|
text = text.lower()
|
|
52
52
|
tokens = re.findall(r'\b[a-z0-9]+\b', text)
|
|
53
53
|
|
|
54
|
-
# Remove stop words
|
|
55
|
-
tokens = [t for t in tokens if t not in STOP_WORDS]
|
|
54
|
+
# Remove stop words and words that are 3 letters or less
|
|
55
|
+
tokens = [t for t in tokens if t not in STOP_WORDS and len(t) > 3]
|
|
56
56
|
|
|
57
57
|
ngrams = []
|
|
58
58
|
min_n, max_n = self.ngram_range
|
|
@@ -134,7 +134,8 @@ class CustomTfidfVectorizer:
|
|
|
134
134
|
# Bi-directional prefix matching
|
|
135
135
|
if partial_match and len(token) >= 3:
|
|
136
136
|
for vocab_term in self.vocabulary:
|
|
137
|
-
|
|
137
|
+
# Ensure vocab_term is also at least 3 chars before allowing token to start with it
|
|
138
|
+
if vocab_term != token and (vocab_term.startswith(token) or (len(vocab_term) >= 3 and token.startswith(vocab_term))):
|
|
138
139
|
term_counts[vocab_term] += 1
|
|
139
140
|
|
|
140
141
|
vector = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: acuity-framework
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.2
|
|
4
4
|
Summary: ACUITY — A machine learning framework for extracting, verifying, and recommending local micro-enterprise profiles from unstructured community posts.
|
|
5
5
|
Author: ACUITY Research Team
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "acuity-framework"
|
|
7
|
-
version = "3.1.
|
|
7
|
+
version = "3.1.2"
|
|
8
8
|
description = "ACUITY — A machine learning framework for extracting, verifying, and recommending local micro-enterprise profiles from unstructured community posts."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -84,7 +84,7 @@ class AcuityBuild(build_py):
|
|
|
84
84
|
def run(self):
|
|
85
85
|
if _is_fun_enabled():
|
|
86
86
|
print(_color(ANSI_BOLD + BANNER, ANSI_CYAN))
|
|
87
|
-
print(_color(" ACUITY installer v3.1.
|
|
87
|
+
print(_color(" ACUITY installer v3.1.2 — extracting local visibility...", ANSI_YELLOW))
|
|
88
88
|
print()
|
|
89
89
|
_animate()
|
|
90
90
|
print(_color(" Installing ACUITY Framework...", ANSI_YELLOW))
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acuity_framework-3.1.0 → acuity_framework-3.1.2}/acuity_framework.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|