Skip to content

Commit

Permalink
update example-12 lxr 220527
Browse files Browse the repository at this point in the history
  • Loading branch information
lxr-tech committed May 27, 2022
1 parent 49e8ae2 commit 19a48c7
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 608 deletions.
11 changes: 10 additions & 1 deletion tutorials/fastnlp_tutorial_e1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
}
],
"source": [
"num_labels = 3 if task.startswith(\"mnli\") else 1 if task==\"stsb\" else 2\n",
"num_labels = 3 if task.startswith(\"mnli\") else 1 if task == \"stsb\" else 2\n",
"\n",
"model = ClassModel(num_labels=num_labels, model_checkpoint=model_checkpoint)\n",
"\n",
Expand Down Expand Up @@ -881,6 +881,15 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.13"
},
"pycharm": {
"stem_cell": {
"cell_type": "raw",
"metadata": {
"collapsed": false
},
"source": []
}
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 19a48c7

Please sign in to comment.