RRRobert212 / Graphing-Wikipedia

Graphing links between wikipedia articles
0 stars 0 forks source link

Avoid Selecting Links in Parentheses #1

Open RRRobert212 opened 9 months ago

RRRobert212 commented 9 months ago

Need to add something to avoid selecting links within parentheses. Not sure exactly how yet because the parentheses are not actually part of the links, they are just text. But avoiding them will stop the problem of "Ancient Greek" always getting selected. It is often in parentheses at the beginning of articles.

RRRobert212 commented 9 months ago

This seems pretty difficult actually, it's hard to identify when a link is within parentheses. Can exclude paragraphs that contain parentheses but this isn't a real solution because there may be links within these paragraphs outside the parentheses. Instead, I have hardcoded exclusions for language articles like "Ancient Greek". This works pretty well.