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

Fix AmazonReviews #2725

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install CN fonts
run: sudo apt-get update && sudo apt-get install fonts-arphic-uming
- name: install Python Dependencies
run: pip3 install nbconvert mkdocs mkdocs-exclude mknotebooks mkdocs-material jupyter Pygments Markdown
run: pip3 install nbconvert mkdocs==1.4.3 mkdocs-exclude mknotebooks mkdocs-material jupyter Pygments Markdown
- name: Install IJava kernel
run: |
git clone https://github.com/frankfliu/IJava.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,9 @@
},
"files": {
"amazon_reviews": {
"uri": "https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_Digital_Software_v1_00.tsv.gz",
"sha1Hash": "b8390100b92579ed814eede4112514417e339902",
"size": 18997559
}
}
},
{
"version": "1.0",
"snapshot": false,
"name": "amazon_reviews_us_Software",
"properties": {
"dataset": "us_Software"
},
"files": {
"amazon_reviews": {
"uri": "https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_Software_v1_00.tsv.gz",
"sha1Hash": "e48346dd356698ce680e385e3ecf07501de695b8",
"size": 94010685
"uri": "1.0/amazon_reviews_us_Digital_Software_v1_00.tsv.gz",
"sha1Hash": "098fb62c5731161dd1e10298a5d11636253609a1",
"size": 18997604
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static TrainingResult runExample(String[] args)
private static CsvDataset getDataset(
Arguments arguments, BertFullTokenizer tokenizer, int maxLength) {
String amazonReview =
"https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_Digital_Software_v1_00.tsv.gz";
"https://mlrepo.djl.ai/dataset/nlp/ai/djl/basicdataset/amazon_reviews/1.0/amazon_reviews_us_Digital_Software_v1_00.tsv.gz";
float paddingToken = tokenizer.getVocabulary().getIndex("[PAD]");
return CsvDataset.builder()
.optCsvUrl(amazonReview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"source": [
"CsvDataset getDataset(int batchSize, BertFullTokenizer tokenizer, int maxLength, int limit) {\n",
" String amazonReview =\n",
" \"https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_Digital_Software_v1_00.tsv.gz\";\n",
" \"https://mlrepo.djl.ai/dataset/nlp/ai/djl/basicdataset/amazon_reviews/1.0/amazon_reviews_us_Digital_Software_v1_00.tsv.gz\";\n",
" float paddingToken = tokenizer.getVocabulary().getIndex(\"[PAD]\");\n",
" return CsvDataset.builder()\n",
" .optCsvUrl(amazonReview) // load from Url\n",
Expand Down
Loading