Giter Club home page Giter Club logo

Comments (4)

BM-K avatar BM-K commented on July 29, 2024

0_Transformer 디렉토리엔 result.pt 파일이 위치해 있음 됩니다.
xlnet_config 파일이 있는 것으로 봐선 bert가 아닌 xlnet을 통해 siamese 네트워크를 구성한 것 같은데, bert로 바꿔주셔야 할 것 같습니다.

from kosentencebert-skt.

kayla220 avatar kayla220 commented on July 29, 2024

@BM-K 안녕하세요. 말씀 하신 것과 같이 0_Transformer 디렉토리에 result.pt를 위치시킨 후

0_Transformer/result.pt

python3 training_nli.py

코드를 실행해 본 결과 아래와 같이 0_Transformer 폴더 안에 sentence_bert_config.json 파일이 필요하다고 뜹니다.

화면 캡처 2021-08-05 171733

+) model_name = 'skt_kobert_model_' 또한 Huggingface models에서 찾을 수 없는 model identifier인 것 같습니다.

화면 캡처 2021-08-05 173407

configuration json 파일은 어디를 참고하여야 할까요?
감사합니다.

from kosentencebert-skt.

fenneccat avatar fenneccat commented on July 29, 2024

@BM-K 저도 @kayla220 님과 동일하게 No such file or directory: './KoSentenceBERT_SKTBERT/output/training_sts/0_Transformer/sentence_bert_config.json' 이러한 에러가 발생합니다. config file을 어디서 구할 수 있는지 말씀해주시면 감사하겠습니다

from kosentencebert-skt.

kayla220 avatar kayla220 commented on July 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.