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

creation of dictionaries from wikipedia pages #9

Open
petermr opened this issue Mar 15, 2020 · 2 comments
Open

creation of dictionaries from wikipedia pages #9

petermr opened this issue Mar 15, 2020 · 2 comments

Comments

@petermr
Copy link
Owner

petermr commented Mar 15, 2020

@petermr
Copy link
Owner Author

petermr commented Mar 15, 2020

Material taken from
https://github.com/petermr/tigr2ess/blob/master/dictionaries/TUTORIAL.md
This tutorial was for food crops but should translate to other topics

@petermr
Copy link
Owner Author

petermr commented Mar 15, 2020

strategy

Dictionary strategy from:
https://github.com/petermr/tigr2ess/blob/master/dictionaries/TUTORIAL.md

example for plants

ami-dictionary create --informat wikipage --input https://en.wikipedia.org/wiki/Ocimum_tenuiflorum --dictionary otenuiflorum --directory mydictionaries --outformats xml,html

wikipedia page

## sars_covid_2
https://en.wikipedia.org/wiki/Severe_acute_respiratory_syndrome_coronavirus_2

cd projects/openVirus
ami-dictionary create --informat wikipage --input https://en.wikipedia.org/wiki/Severe_acute_respiratory_syndrome_coronavirus_2 --dictionary sars_covid_2 --directory dictionaries --outformats xml,html

NOTE: takes about 1 sec for each entry due to individual downloads. No immediate output to disk until everything is finished.

creates:

/Users/pm286/projects/openVirus/dictionaries/sars_covid_2

with 123 entries (some are irrelevant and will need editing out).

pandemic

ami-dictionary create --informat wikipage --input https://en.wikipedia.org/wiki/2019–20_coronavirus_pandemic --dictionary 201920_covid_pandemic --directory dictionaries --outformats xml,html

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

1 participant