claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] LexC Entity Type Confusion - Persons Classified as Organizations

Open JLiotta-25 opened this issue 1 year ago • 2 comments

Bug Description

LexC incorrectly classifies person names as organizations in legal documents.

Reproduction

Document text: "Jennifer Liotta ("Client")"
Expected: [PERSON:Jennifer Liotta]
Actual: [ORGANIZATION:0.90:Client]

Analysis

  • The system appears to be extracting the role "Client" instead of the person name
  • High confidence (0.90) suggests the classifier is confident but wrong
  • This affects party identification in legal documents

Impact

  • Contract party analysis incorrect
  • Person vs organization legal rules misapplied
  • Metadata shows empty parties array despite clear contract parties

Test Case

Document: Legal consulting agreement with named parties Expected parties: Jennifer Liotta, Micha Schrom
Actual extraction: One person missed, one misclassified as organization

Priority: High - Critical for legal document analysis

JLiotta-25 avatar Sep 21 '25 16:09 JLiotta-25

Closing - this is a LexC/Parslee entity extraction issue, not a Claude Code bug. This issue belongs in the appropriate Parslee repository rather than the Claude Code CLI tool repository.

JLiotta-25 avatar Sep 21 '25 16:09 JLiotta-25

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Sep 29 '25 14:09 github-actions[bot]