language-model
Here are 736 public repositories matching this topic...
-
Updated
Oct 22, 2020
-
Updated
Aug 10, 2021 - Python
The Split
class accepts SplitDelimiterBehavior
which is really useful. The Punctuation
however always uses SplitDelimiterBehavior::Isolated
(and Whitespace
on the other hand behaves like SplitDelimiterBehavior::Removed
).
impl PreTokenizer for Punctuation {
fn pre_tokenize(&self, pretokenized: &mut PreTokenizedString) -> Result<()> {
pretokenized.split(|_, s| s.spl
chooses 15% of token
From paper, it mentioned
Instead, the training data generator chooses 15% of tokens at random, e.g., in the sentence my
dog is hairy it chooses hairy.
It means that 15% of token will be choose for sure.
From https://github.com/codertimo/BERT-pytorch/blob/master/bert_pytorch/dataset/dataset.py#L68,
for every single token, it has 15% of chance that go though the followup procedure.
PositionalEmbedding
-
Updated
Aug 12, 2021 - Python
-
Updated
Aug 12, 2021 - Python
-
Updated
Jun 19, 2021 - Python
A web crawler was added by #775, but the test cases are missing.
-
Updated
Aug 3, 2021 - Python
-
Updated
Aug 10, 2021
-
Updated
Nov 11, 2020 - Python
-
Updated
Apr 23, 2021 - Python
-
Updated
May 7, 2020 - Python
-
Updated
May 11, 2021 - Python
-
Updated
Aug 9, 2021 - Python
Issue to track tutorial requests:
- Deep Learning with PyTorch: A 60 Minute Blitz - #69
- Sentence Classification - #79
-
Updated
Aug 12, 2021 - Python
-
Updated
Aug 5, 2020
-
Updated
Aug 12, 2021 - Python
-
Updated
Jul 21, 2021 - Python
-
Updated
Jan 1, 2019 - Python
-
Updated
Jul 2, 2021 - Go
-
Updated
Jul 27, 2021 - Python
-
Updated
Oct 29, 2020 - Python
-
Updated
Dec 14, 2020 - Python
-
Updated
May 4, 2021 - Python
-
Updated
Jul 22, 2021 - Jupyter Notebook
-
Updated
Jul 31, 2021 - TeX
-
Updated
Dec 18, 2017 - Python
Improve this page
Add a description, image, and links to the language-model topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the language-model topic, visit your repo's landing page and select "manage topics."
https://github.com/huggingface/transformers/blob/546dc24e0883e5e9f5eb06ec8060e3e6ccc5f6d7/src/transformers/models/gpt2/modeling_gpt2.py#L698
Assertions can't be relied upon for control flow because they can be disabled, as per the following: