Jacob Devlin
Jacob Devlin
Someone had suggested this: ``` logging_hook = tf.train.LoggingTensorHook({"loss": total_loss}, every_n_iter=10) output_spec = tf.contrib.tpu.TPUEstimatorSpec( mode=mode, loss=total_loss, train_op=train_op, training_hooks=[logging_hook], scaffold_fn=scaffold_fn) ``` This is very noisy though since it just prints the training...
To classify a document just feed in the entire document to BERT (i.e., treat all of the concatenated sentences as "Segment A"). You should be able to just write your...
It gets printed to STDERR by default so >& log.txt should work.
No, we're not allowed to release any data (even Wikipedia).
This shouldn't be possible, but keep in mind there is a lot of noise in tuning so I wouldn't draw this conclusion unless you ran at least 5 runs with...
Yes, avostryakov is correct.
BERT will always be slow on the CPU, there is not an easy way to speed it up other than to switch to GPU or TPU as suggested here.
Yes, this is a standard sized vocabulary when using sub-words. You can print the output of FullTokenizer.tokenize (look at `extract_features.py` for a simple use case) if you're curious to see...
Yes it's almost exactly equal to the source encoder part of the original transformer. The decoder part is not used at all.
The classification layer is always added at fine-tuning time, so it can be any size you want. For example, in `run_pretraining.py` MRPC is 2-label and MNLI is 3-label. If you're...