柚子快報激活碼778899分享:nlp學(xué)習(xí)筆記
目錄
很多入門例子
bert chinese
很多入門例子
https://github.com/lansinuote/Huggingface_Toturials
bert chinese
import torch
import torch.nn as nn
from transformers import AutoTokenizer, AutoModel, BertModel, TFBertModel, BertTokenizer
# youpath = 'D:/bert-base-chinese'
# tokenizer =AutoTokenizer.from_pretrained(youpath)
tokenizer = BertTokenizer.from_pretrained(
pretrained_model_name_or_path='bert-base-chinese',
cache_dir=None,
force_download=False,
)
model = BertModel.from_pretrained('bert-base-chinese')
柚子快報激活碼778899分享:nlp學(xué)習(xí)筆記
精彩文章
評論可見,查看隱藏內(nèi)容
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點(diǎn)和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。