You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
大佬,请问一下,在文件的实例化tokenizer和model下面的函数
这个图里面问题怎么解决
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py:1656: FutureWarning: Calling BertTokenizer.from_pretrained() with the path to a single file or url is deprecated and won't be possible anymore in v5. Use a model identifier or the path to a directory instead.
FutureWarning,
load model ending!
我在本地运行python http_server.py是没有出现这个问题的,我根据提示将tokenizer = BertTokenizer.from_pretrained(args.vocab_path, do_lower_case=True)改为
tokenizer = BertTokenizer.from_pretrained('vocab/vocab.txt') do_lower_case=True 结果还是一样的结果 改为tokenizer = BertTokenizer.from_pretrained('vocab/vocab.txt')也不正确 改为tokenizer = BertTokenizer.from_pretrained('/cx/GPT2-NewsTitle-main/vocab/vocab.txt')`结果都是一样的,运行代码没有出现网页,求教
The text was updated successfully, but these errors were encountered:
大佬,请问一下,在文件的实例化tokenizer和model下面的函数
这个图里面问题怎么解决
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py:1656: FutureWarning: Calling BertTokenizer.from_pretrained() with the path to a single file or url is deprecated and won't be possible anymore in v5. Use a model identifier or the path to a directory instead.
FutureWarning,
load model ending!
我在本地运行python http_server.py是没有出现这个问题的,我根据提示将
tokenizer = BertTokenizer.from_pretrained(args.vocab_path, do_lower_case=True)
改为tokenizer = BertTokenizer.from_pretrained('vocab/vocab.txt')
do_lower_case=True 结果还是一样的结果 改为
tokenizer = BertTokenizer.from_pretrained('vocab/vocab.txt')也不正确 改为
tokenizer = BertTokenizer.from_pretrained('/cx/GPT2-NewsTitle-main/vocab/vocab.txt')`结果都是一样的,运行代码没有出现网页,求教The text was updated successfully, but these errors were encountered: