pcs-annotator 0.1.6__tar.gz → 0.1.8__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.
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/PKG-INFO +1 -1
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pcs_annotator/LLM.py +1 -1
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pcs_annotator/PCS.py +7 -2
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pyproject.toml +1 -1
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/LICENSE +0 -0
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/README.md +0 -0
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pcs_annotator/Annotator.py +0 -0
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pcs_annotator/TextMutator.py +0 -0
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pcs_annotator/Tools.py +0 -0
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/pcs_annotator/__init__.py +0 -0
- {pcs_annotator-0.1.6 → pcs_annotator-0.1.8}/requirements.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pcs-annotator
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
4
4
|
Summary: A Python library for classification tasks using multiple LLMs
|
|
5
5
|
Project-URL: Homepage, https://github.com/salsina/PCS-Python-Library
|
|
6
6
|
Project-URL: Issues, https://github.com/salsina/PCS-Python-Library/issues
|
|
@@ -186,7 +186,7 @@ class PCS:
|
|
|
186
186
|
|
|
187
187
|
num_labels = len(possible_labels)
|
|
188
188
|
pcs_labels = np.zeros(num_labels)
|
|
189
|
-
|
|
189
|
+
|
|
190
190
|
for i in range(len(w_llms)):
|
|
191
191
|
pcs_label_llm = np.zeros(num_labels)
|
|
192
192
|
for j in range(len(llm_labels[i])): #Iterate through MR labels
|
|
@@ -413,6 +413,11 @@ class PCS:
|
|
|
413
413
|
text_mr1 = self.textMutator.MutateText(text=text, mr="passive_active")
|
|
414
414
|
text_mr2 = self.textMutator.MutateText(text=text, mr="double_negation")
|
|
415
415
|
text_mr3 = self.textMutator.MutateText(text=text, mr="synonym")
|
|
416
|
+
print("text", text)
|
|
417
|
+
print("text_mr1", text_mr1)
|
|
418
|
+
print("text_mr2", text_mr2)
|
|
419
|
+
print("text_mr3", text_mr3)
|
|
420
|
+
|
|
416
421
|
llm_preds = []
|
|
417
422
|
for annotator in self.annotators:
|
|
418
423
|
annotations = []
|
|
@@ -421,7 +426,7 @@ class PCS:
|
|
|
421
426
|
annotations.append(annotator.annotate(text_mr2)[0])
|
|
422
427
|
annotations.append(annotator.annotate(text_mr3)[0])
|
|
423
428
|
llm_preds.append(annotations)
|
|
424
|
-
|
|
429
|
+
print("llm_preds", llm_preds)
|
|
425
430
|
confidences = self.get_pcs_label(llm_preds)
|
|
426
431
|
label_confidences = {}
|
|
427
432
|
for i in range(len(self.possible_labels)):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|