Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geoboxes, etc. as infoboxes #7

Open
michaelsilver opened this issue Sep 28, 2015 · 3 comments
Open

Add geoboxes, etc. as infoboxes #7

michaelsilver opened this issue Sep 28, 2015 · 3 comments

Comments

@michaelsilver
Copy link
Member

In the extract_infoboxes() function, change the regexp that matches infoboxes to detect geoboxes, and any other variations on the infobox theme as well. This has a direct effect of what classes get stored in the WikithingsDB, so I'd like to maximize what types of 'boxes get matched.

I believe @fakedrake had the magic regexp to match all versions of infoboxes, geoboxes, etc. in WikipediaBase, but I can't seem to find it now. Anyone know the best regexp for this?

@alvaromorales
Copy link
Member

From WikipediaBase/infobox.py:

# Various names under which you may find an infobox
box_rx = ur"\b(infobox|Infobox|taxobox|Taxobox)\b"

@michaelsilver
Copy link
Member Author

Awesome, thanks! Any reason not to include geoboxes? (As in the East River).

@michaelsilver michaelsilver self-assigned this Sep 28, 2015
@alvaromorales
Copy link
Member

@michaelsilver michaelsilver removed their assignment Oct 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants