cat-llm 0.0.70__tar.gz → 0.0.72__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.
- {cat_llm-0.0.70 → cat_llm-0.0.72}/PKG-INFO +1 -1
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/__about__.py +1 -1
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/text_functions.py +7 -3
- {cat_llm-0.0.70 → cat_llm-0.0.72}/.gitignore +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/LICENSE +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/README.md +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/pyproject.toml +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/CERAD_functions.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/__init__.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/build_web_research.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/calls/CoVe.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/calls/__init__.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/calls/all_calls.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/image_functions.py +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/images/circle.png +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/images/cube.png +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/images/diamond.png +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/images/overlapping_pentagons.png +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/images/rectangles.png +0 -0
- {cat_llm-0.0.70 → cat_llm-0.0.72}/src/catllm/model_reference_list.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cat-llm
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.72
|
4
4
|
Summary: A tool for categorizing text data and images using LLMs and vision models
|
5
5
|
Project-URL: Documentation, https://github.com/chrissoria/cat-llm#readme
|
6
6
|
Project-URL: Issues, https://github.com/chrissoria/cat-llm/issues
|
@@ -726,14 +726,18 @@ def multi_class(
|
|
726
726
|
.map({True: 'error', False: 'success'})
|
727
727
|
)
|
728
728
|
|
729
|
-
categorized_data.loc[
|
729
|
+
categorized_data.loc[
|
730
|
+
categorized_data[cat_cols].apply(pd.to_numeric, errors='coerce').isna().any(axis=1),
|
731
|
+
cat_cols
|
732
|
+
] = pd.NA
|
733
|
+
|
730
734
|
categorized_data[cat_cols] = categorized_data[cat_cols].astype('Int64')
|
731
735
|
|
732
|
-
categorized_data['
|
736
|
+
categorized_data['categories_id'] = categorized_data[cat_cols].apply(
|
733
737
|
lambda x: ','.join(x.dropna().astype(str)), axis=1
|
734
738
|
)
|
735
739
|
|
736
|
-
categorized_data['
|
740
|
+
categorized_data['categories_present'] = categorized_data[cat_cols].sum(axis=1)
|
737
741
|
|
738
742
|
if to_csv:
|
739
743
|
if save_directory is None:
|
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
|