일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer 리뷰
- hugging face tokenizer에서 special case 추가하기
- Attention Is All You Need 리뷰
- TOD 논문리뷰
- The Natural Language Decathlon:Multitask Learning as Question Answering
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding 리뷰
- Attention Is All You Need
- MMTOD
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
- Evaluate Multiwoz
- BERT 사용방법
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding 논문리뷰
- A Neural Attention Model for Abstractive Sentence Summarization
- RuntimeError: DataLoader worker (pid(s) ) exited unexpectedly
- 뉴텝스 400
- BART 논문리뷰
- T5 논문 리뷰
- BERT란
- UBAR: Towards Fully End-to-End Task-Oriented Dialog System with GPT-2
- ImageNet Classification with Deep ConvolutionalNeural Networks 리뷰
- 다양한 모듈에서 log쓰기
- attention 설명
- Multi Task Learning Objectives for Natural Language Processing
- 정책기반 agent
- Multi Task Learning Objectives for Natural Language Processing 리뷰
- 바닥부터 배우는 강화 학습
- NLP 논문 리뷰
- 길찾기
- Zero-shot Generalization in Dialog State Tracking through GenerativeQuestion Answering
- CNN 논문리뷰
Archives
- Today
- Total
목록유용한 기억 (2)
one by one ◼◻◼◻
hugging face tokenizer에서 special case 추가하기
아래 코드대로 하면 tokenize 해도 [C1] 은 tokenize되지 않고 유지된다. special_tokens_dict = {'additional_special_tokens': ['[C1]','[C2]','[C3]','[C4]']} num_added_toks = tokenizer.add_special_tokens(special_tokens_dict) model.resize_token_embeddings(len(tokenizer)) 출처 : https://github.com/huggingface/tokenizers/issues/247
유용한 기억
2022. 1. 3. 10:55

python 에서 log를 만드는 (경험상) 가장 편리한 방법을 정리해 보았다. 왜 print()를 안쓰는가? - print도 간단하고 좋은 방법이지만, 따로 관리하기 어렵고, 지저분하고.. 언제 남겨진 log인지 알아보기 힘든 단점이 있다! logger를 쓰면 좋은점? logger를사용하면 하나의 폴더안에 있는 다양한 모듈(main.py, util.py, dataset.py 등등..) 에서 하나의 logger를 사용할 수 있다. 큰 프로그램으 관리하기 쉬워진다 등등.. 여러 장점이 있다 사용방법 일단 폴더안에 아래 코드를 만든다. log_conf.py #/temp/log_conf.py import logging def init_logger(): mylogger = logging.getLogger("my..
유용한 기억
2021. 11. 12. 16:06