Skip to content

Commit 0aba235

Browse files
fix: correct AnnotatedDocument kwarg from id= to document_id= (fixes #25)
- Fix runtime TypeError in langextract tool - AnnotatedDocument constructor expects document_id= not id= - Tests now pass: 16 passed, 0 failed Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
1 parent 44e4d82 commit 0aba235

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

praisonai_tools/tools/langextract_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _create_annotated_document(text: str, extractions: List[str], document_id: s
6767

6868
# Create annotated document
6969
return lx.data.AnnotatedDocument(
70-
id=document_id,
70+
document_id=document_id,
7171
text=text,
7272
intervals=intervals
7373
)

0 commit comments

Comments
 (0)