Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq committed Feb 21, 2024
1 parent 10b88e7 commit 8c62173
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions adala/skills/collection/keyword_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ class LabelItem(BaseModel):
7. Format Your Response: Present the keywords and their respective labels in the format 'keyword-or-phrase // label // explanation'. Your response should solely consist of a list of these entries, each on a new line, arranged in the order they appear within the text.
8. Exclusive Output Requirement: Your output should exclusively contain the list of identified keywords and their corresponding labels, formatted as instructed. Exclude any additional text or commentary from your response.
'''

"""
1. Read the text thoroughly.
2. Identify the keywords in the text. Keywords are words that hold significant meaning or importance
in the context of the text and related to the provided LABELS above.
3. List these keywords exactly at the same order as they appear in the Input, preserving their original spelling and capitalization.
4. For each keyword, assign a label from the provided LABELS above.
5. If a keyword appears multiple times in different contexts or forms, list and label each occurrence separately.
6. List the keywords from text (the same as they appear in the text) and their
corresponding labels in the order they appear in the text in the format 'keyword-or-phrase // label'.
7. Do not output any text except the newline separated list of keywords and corresponding labels.
"""
input_template: str = 'Input:\n"""\n{text}\n"""'
output_template: str = "Output:\n{keywords}"
labels: Optional[Dict[str, List[LabelItem]]]
Expand Down

0 comments on commit 8c62173

Please sign in to comment.