Consider support for boilerplate removal to PageExtractor
Categories
(Core :: Machine Learning: On Device, enhancement, P3)
Tracking
()
People
(Reporter: gregtatum, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [genai])
Right now page extraction just aggregates all of the visible text on the page. There is a lot of prior art on boilerplate removal for webpages. We should integrate that as an extraction option.
There is prior art, for example:
https://dl.acm.org/doi/10.1145/1718487.1718542
Updated•1 year ago
|
| Reporter | ||
Comment 1•1 year ago
|
||
I looked into this, and I'm not convinced that we should do boilerplate removal now. I explored a few different approaches here with removing boilerplate. I think just supporting reader mode as a default if it's available seems reasonable, but also support just general text extraction. I am going to leave this open to collect any ideas if they come up, but providing all the text in the viewport seems to provide really good results as it is. The viewport is really what the user sees, and so it seems to make sense to just show that. Even if you show a full page view of text you could annotate where the viewport starts and where it ends to really hone in on text without building heuristics to filter out boilerplate.
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Comment 2•6 months ago
|
||
I'm going to close this since we basically support boilerplate removal via Reader Mode. In my mind this is good enough, as PageExtractor turns into a bit of a different way of working with text, and ReaderMode is "article mode".
Description
•