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

Fixes to the ConceptNet build process and some readers #148

Merged
merged 14 commits into from
Feb 2, 2018

Conversation

rspeer
Copy link
Member

@rspeer rspeer commented Dec 1, 2017

  • Downloads raw data from Zenodo instead of from our S3 bucket
  • Fixes some bugs in the Snakefile, and uses more sensible format strings
  • expresses inheritance between verbs in WordNet using /r/MannerOf, not /r/IsA
  • curates the ConceptNet 4 data a bit

Snakefile Outdated
CORE_DATASET_NAMES += ["emoji/{}".format(lang) for lang in EMOJI_LANGUAGES]


DATASET_NAMES = CORE_DATASET_NAMES + ["dbpedia/dbpedia_en"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the code-review-fixes-20171117 branch, I moved this part to after setting TESTMODE variables, to ensure that in the test mode CORE_DATASET_NAMES += ["emoji/{}".format(lang) for lang in EMOJI_LANGUAGES] is being set with EMOJI_LANGUAGES equal to ['en', 'en_001'] as opposed to all languages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh whoops, I should have paid more attention to the merge conflict.

Snakefile Outdated
CORE_DATASET_NAMES += ["conceptnet4/conceptnet4_flat_{}".format(num) for num in range(10)]
CORE_DATASET_NAMES += ["ptt_petgame/part{}".format(num) for num in range(1, 13)]
CORE_DATASET_NAMES += ["wiktionary/{}".format(lang) for lang in WIKTIONARY_LANGUAGES]
CORE_DATASET_NAMES += ["emoji/{}".format(lang) for lang in EMOJI_LANGUAGES]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is still incorrect, because CORE_DATASET_NAMES gets updated with emoji files before EMOJI_LANGUAGES is overwritten in line 107.

output:
DATA + "/raw/{dirname}/{filename}"
shell:
"wget -nv {RAW_DATA_URL}/{wildcards.dirname}/{wildcards.filename} -O {output}"
"unzip {input} raw/{wildcards.dirname}/{wildcards.filename} -d {DATA}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like every time a single new file is added to the process, one would have to re-download the entire conceptnet-raw-data-5.5.zip package. Would it be possible to unbundle it?

@jlowryduda jlowryduda merged commit 1414015 into master Feb 2, 2018
@jlowryduda jlowryduda deleted the setup-fixes branch February 2, 2018 21:07
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

Successfully merging this pull request may close these issues.

2 participants