Research Scientist, Google
-
Google
- Israel
- http://www.roeeaharoni.com
- @roeeaharoni
Block or Report
Block or report roeeaharoni
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
unsupervised-domain-clusters Public
Code and data accompanying our ACL 2020 paper, "Unsupervised Domain Clusters in Pretrained Language Models".
-
morphological-reinflection Public
Source code for the paper "Morphological Inflection Generation with Hard Monotonic Attention"
-
string-to-tree-nmt Public
Source code and data for the paper "Towards String-to-Tree Neural Machine Translation"
-
sprp-acl2018 Public
Source code and data for "Split and Rephrase: Better Evaluation and a Stronger Baseline"
-
1
import torch
2from pytorch_pretrained_bert import BertForMaskedLM, BertTokenizer
3import random
45# Requires pytorch_pretrained_bert: https://github.com/huggingface/pytorch-pretrained-BERT