pcs-annotator 0.1.7__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.7 → pcs_annotator-0.1.8}/PKG-INFO +1 -1
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pcs_annotator/PCS.py +6 -2
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pyproject.toml +1 -1
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/LICENSE +0 -0
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/README.md +0 -0
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pcs_annotator/Annotator.py +0 -0
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pcs_annotator/LLM.py +0 -0
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pcs_annotator/TextMutator.py +0 -0
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pcs_annotator/Tools.py +0 -0
- {pcs_annotator-0.1.7 → pcs_annotator-0.1.8}/pcs_annotator/__init__.py +0 -0
- {pcs_annotator-0.1.7 → 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
|
|
@@ -187,7 +187,6 @@ class PCS:
|
|
|
187
187
|
num_labels = len(possible_labels)
|
|
188
188
|
pcs_labels = np.zeros(num_labels)
|
|
189
189
|
|
|
190
|
-
print(llm_labels)
|
|
191
190
|
for i in range(len(w_llms)):
|
|
192
191
|
pcs_label_llm = np.zeros(num_labels)
|
|
193
192
|
for j in range(len(llm_labels[i])): #Iterate through MR labels
|
|
@@ -414,6 +413,11 @@ class PCS:
|
|
|
414
413
|
text_mr1 = self.textMutator.MutateText(text=text, mr="passive_active")
|
|
415
414
|
text_mr2 = self.textMutator.MutateText(text=text, mr="double_negation")
|
|
416
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
|
+
|
|
417
421
|
llm_preds = []
|
|
418
422
|
for annotator in self.annotators:
|
|
419
423
|
annotations = []
|
|
@@ -422,7 +426,7 @@ class PCS:
|
|
|
422
426
|
annotations.append(annotator.annotate(text_mr2)[0])
|
|
423
427
|
annotations.append(annotator.annotate(text_mr3)[0])
|
|
424
428
|
llm_preds.append(annotations)
|
|
425
|
-
|
|
429
|
+
print("llm_preds", llm_preds)
|
|
426
430
|
confidences = self.get_pcs_label(llm_preds)
|
|
427
431
|
label_confidences = {}
|
|
428
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
|
|
File without changes
|