cd <PATH_TO_SEMANTIC_SCHOLAR_ARCHIVE>
wget https://s3-us-west-2.amazonaws.com/ai2-s2-research-public/open-corpus/manifest.txt
cat manifest.txt | grep corpus | while read -r url; do
wget https://s3-us-west-2.amazonaws.com/ai2-s2-research-public/open-corpus/$url;
java -cp build/libs/pubtrends-dev.jar org.jetbrains.bio.pubtrends.ss.MainKt --fillDatabase
rm $(echo $url | sed -E 's#^.*/##g');
done
When directory is changed to <PATH_TO_SEMANTIC_SCHOLAR_ARCHIVE>, JAR archive might not be available at specified relative path build/libs/pubtrends-dev.jar, which leads to an error.
Also these commands are very convenient, we might consider wrapping them in .sh file. What do you think, @olegs?
Commands from README.md:
When directory is changed to
<PATH_TO_SEMANTIC_SCHOLAR_ARCHIVE>
, JAR archive might not be available at specified relative pathbuild/libs/pubtrends-dev.jar
, which leads to an error.Also these commands are very convenient, we might consider wrapping them in
.sh
file. What do you think, @olegs?