Skip to content

LLM-IE v0.3.5

Choose a tag to compare

@daviden1013 daviden1013 released this 27 Nov 21:24

Documentation

New features

  • Added json_repair to dependency
  • Adopted json_repair in post-processing. When LLM's output does not follow JSON format (e.g., has un-escaped double quote or newline character), json_repair will be used to fix it. If fixed, a warning "JSONDecodeError detected, fixed with repair_json" will be triggered. If still fails, a warning "JSONDecodeError could not be fixed" will be triggered.
    • For FrameExtractors, frames that have broken JSON format and can not be fixed will be discarded.
    • For RelationExtractors, relations that have broken JSON format and can not be fixed will be discarded.