edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

the tenk.risk_factors sometimes cannot extracted the intended item content

Open bocunchen opened this issue 1 year ago • 7 comments

The same is true for other items, where tenk is the object of the 10-K document. This is for some companies that do not have conventional format of filings, such as GE. See below: https://www.sec.gov/ix?doc=/Archives/edgar/data/40545/000004054525000015/ge-20241231.htm The item names are in "Cross Reference Index" rather than "Table of Contents".

bocunchen avatar Feb 04 '25 05:02 bocunchen

I confirmed this issue with the latest release of the code (3.13.3). You can see in the first cell output that the parser was unable to populate the GE items (except for 'Business'), but was able to fully populate for AAPL.

Image

kalavrcom avatar Mar 17 '25 16:03 kalavrcom

Hi has this been fixed?

david08-08 avatar Mar 17 '25 17:03 david08-08

Hi has this been fixed?

Hi David,

This is an unproductive comment because:

  1. I replied to this ticket an hour ago stating that I had replicated the issue. This means that the problem still exists.
  2. The best way to answer your specific question would be to download the latest release and test this on your own, as I did.

The reason I am replying here is because you also did this in a different ticket and since I'm following these updates my email inbox becomes polluted, along with everybody else's (including the lead developer for this library).

Your offhand inquiry would be absolutely OK in a chat environment like Discord/IRC/Slack, but is generally frowned upon in a ticketing system like GitHub. I hope you will take this response as constructive feedback, and not a critism, as you (and others) may not be aware of general etiquette in an issue ticketing system like GitHub.

kalavrcom avatar Mar 17 '25 18:03 kalavrcom

I am sorry. I understand. I appreciate the heads-up and I meant no disrespect.

David

david08-08 avatar Mar 17 '25 18:03 david08-08

I will take a look at this specific issue later.

The current implementation uses a combination of rules and regex to match the sections in 10-K text, and will never get to 100% accuracy. However for it to miss that much in the GE 10-K means that there is some character pattern in the GE document that is not accounted for in code.

HTML parsing in edgartools was updated a few months ago to be a lot more precise but the section detection still uses the old html parsing. The intent was to switch to the new parser to further improve the detection accuracy.

Edgartools being as big as it is - means that I have to focus on an area for a couple weeks, then move back to another area. Currently I'm working on XBRL2 and once that is stable I will move on. Maybe there is a way to scale effort across the different areas.

dgunning avatar Mar 18 '25 16:03 dgunning

I am finding this is also an issue for EMN

dx-li avatar Aug 21 '25 22:08 dx-li

Investigation Complete

This issue is caused by format variation, not a parser bug.

Root Cause

GE uses a "Form 10-K Cross Reference Index" format instead of standard Item section headings:

FORM 10-K CROSS REFERENCE INDEX     | Page(s)
Item 1.   | Business                 | 4-7, 9-11, 74-75
Item 1A.  | Risk Factors             | 26-33
Item 1B.  | Unresolved Staff Comments| Not applicable

The actual content sections don't have Item headings - they use page references instead. Both our current parser and the new parser work correctly; they just aren't designed for this non-standard format.

Resolution

Created feature request edgartools-zwd to support Cross Reference Index format filings. This would require:

  1. Detecting Cross Reference Index tables
  2. Parsing Item-to-page mappings
  3. Navigating to referenced pages to extract content

Priority

Classified as P3 (enhancement) since this affects a small number of companies that use this non-standard format.


Tracking: edgartools-zwd

dgunning avatar Nov 25 '25 19:11 dgunning