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

Dictionary search using Python #4

Open
petermr opened this issue Dec 3, 2020 · 3 comments
Open

Dictionary search using Python #4

petermr opened this issue Dec 3, 2020 · 3 comments
Assignees

Comments

@petermr
Copy link
Owner

petermr commented Dec 3, 2020

Python code to read fulltext.xml or the sections and match words using one or more dictionaries.

@petermr petermr self-assigned this Dec 3, 2020
@petermr
Copy link
Owner Author

petermr commented Dec 3, 2020

Approximate:

  • glob.glob(“/*_methods//*.xml”)

  • elementTree to get the text of the XML files

  • Search text using Python for stem/lowercase/stopwords and return wikiData ID and context

@ShweataNHegde
Copy link
Collaborator

Peter had written a Jupyter Notebook (probably a month ago) which did something similar. Here is the link to the notebook. https://github.com/petermr/ami3/blob/master/src/ipynb/text.ipynb

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

3 participants