Nlp Tutorial 1 :Bert-pytorch

F:\Anaconda3\python.exe F:/不确定人工智能/nlp-tutorial-master/nlp-tutorial-master/5-2.BERT/BERT-Torch.py
Epoch: 0010 cost = 67.721603
Epoch: 0020 cost = 31.837471
Epoch: 0030 cost = 19.314724
Epoch: 0040 cost = 14.151658
Epoch: 0050 cost = 7.124156
Epoch: 0060 cost = 6.137958
Epoch: 0070 cost = 4.174502
Epoch: 0080 cost = 4.294816
Epoch: 0090 cost = 4.949601
Epoch: 0100 cost = 3.276113
Hello, how are you? I am Romeo.
Hello, Romeo My name is Juliet. Nice to meet you.
Nice meet you too. How are you today?
Great. My baseball team won the competition.
Oh Congratulations, Juliet
Thanks you Romeo
['[CLS]', 'thanks', 'you', 'romeo', '[SEP]', '[MASK]', '[MASK]', 'my', 'name', 'is', 'juliet', 'nice', 'to', 'meet', 'you', '[SEP]']
masked tokens list :  [15, 9]
predict masked tokens list :  [16, 16, 16, 16, 16]
isNext :  False
predict isNext :  False

Process finished with exit code 0

发布了19 篇原创文章 · 获赞 1 · 访问量 328

猜你喜欢

转载自blog.csdn.net/qq_41557627/article/details/105340779