Fulltext extraction improvement #1 - #106
Merged
Merged
Conversation
…are inserted into <li>s, text lines are stripped of prefix and suffix spaces
…are inserted into <li>s, text lines are stripped of prefix and suffix spaces
…ove empty tags and trailing media in content
…/newspaper into fulltext-improvement-1
Owner
Author
Owner
Author
|
@amontalenti |
This was referenced Jan 13, 2015
codelucas
added a commit
that referenced
this pull request
Jan 15, 2015
Fulltext extraction improvement #1
This was referenced Oct 23, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Full-text extraction improvements from this diff:
<li>and<ul>list elements were usually filtered out in the old extraction mechanism, the new updated extraction code includes list elements (and even in their original form, newlines are inserted!)Case 1:
URL: http://lungcancer.about.com/od/Targeted-Therapy-Lung-Cancer/fl/Genetic-Testing-for-People-with-Lung-Cancer.htm?utm_source=google&utm_medium=social&utm_campaign=shareurlbuttons
Fail description: Before this PR, titles and lists
<li><ul>elements were flat out ignored in the output fulltext. Also, the intro paragraph (huge) was ignored for no good reason.Before: https://dl.dropboxusercontent.com/u/103212767/old_fulltext/about.com2.txt
After: https://dl.dropboxusercontent.com/u/103212767/new_fulltext/about.com2.txt
Case 2:
URL: http://in.reuters.com/article/2014/12/30/india-sensex-nifty-idINKBN0K80A020141230
Fail description: First paragraph of all Reuters articles are ignored for no good reason.
Before: https://dl.dropboxusercontent.com/u/103212767/old_fulltext/reuters.com1.txt
After: https://dl.dropboxusercontent.com/u/103212767/new_fulltext/reuters.com1.txt
Case 3:
URL: http://www.telegraph.co.uk/news/worldnews/asia/indonesia/11315001/AirAsia-plane-reported-missing-with-162-passengers-onboard-latest.html
Fail description: Old extractor drops random blocks of text: for example, the timestamp "07.13" is dropped and many tweets about the flight crash were also dropped (embedded tweets are becoming more commonplace within articles and should be included)
Before: https://dl.dropboxusercontent.com/u/103212767/old_fulltext/telegraph.co.uk1.txt
After: https://dl.dropboxusercontent.com/u/103212767/new_fulltext/telegraph.co.uk1.txt