Comments (4)
0_Transformer 디렉토리엔 result.pt 파일이 위치해 있음 됩니다.
xlnet_config 파일이 있는 것으로 봐선 bert가 아닌 xlnet을 통해 siamese 네트워크를 구성한 것 같은데, bert로 바꿔주셔야 할 것 같습니다.
from kosentencebert-skt.
@BM-K 안녕하세요. 말씀 하신 것과 같이 0_Transformer 디렉토리에 result.pt를 위치시킨 후
0_Transformer/result.pt
python3 training_nli.py
코드를 실행해 본 결과 아래와 같이 0_Transformer 폴더 안에 sentence_bert_config.json 파일이 필요하다고 뜹니다.
+) model_name = 'skt_kobert_model_' 또한 Huggingface models에서 찾을 수 없는 model identifier인 것 같습니다.
configuration json 파일은 어디를 참고하여야 할까요?
감사합니다.
from kosentencebert-skt.
@BM-K 저도 @kayla220 님과 동일하게 No such file or directory: './KoSentenceBERT_SKTBERT/output/training_sts/0_Transformer/sentence_bert_config.json' 이러한 에러가 발생합니다. config file을 어디서 구할 수 있는지 말씀해주시면 감사하겠습니다
from kosentencebert-skt.
@fenneccat 님, 저는 wikidocs에도 적혀있듯이 결국 sentence_transformers, tokenizers, transformers이 세 폴더의 경로가 꼬여서 위와같은 에러가 발생하였었습니다.
/opt/conda/lib/python3.7/sentence_transformers
가 아닌 /opt/sentence_transformers
와 같이 폴더를 바꾼뒤 코드내에서 import 할때 from opt.sentence_transformers import SentenceTransformer
와 같이 불러오시면 경로가 꼬이지 않아 올바른 method를 불러와 에러가 해결되었습니다!
from kosentencebert-skt.
Related Issues (9)
- tokenizers init HOT 1
- 모델 load시 "TypeError: __init__() got an unexpected keyword argument 'return_dict'" 오류 발생 HOT 1
- training_sts.zip 불러오기 오류 HOT 3
- sentence_xlnet_config.json 오류
- SemanticSearch.py tokenizers.tokenizers error+해결과정공유 HOT 15
- IndexError: index 16 is out of bounds for dimension 0 with size 16 HOT 5
- Using pretrained model with cpu HOT 6
- FileNotFoundError: [Errno 2] No such file or directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kosentencebert-skt.