+ this will be highlighted in green
- this will be highlighted in red
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @hydra.main(version_base=None, config_path=".", config_name="config") | |
| def main(cfg): | |
| #> 1. Initialize | |
| parser = HfArgumentParser((ModelArguments, DataTrainingArguments, TrainingArguments)) | |
| # Convert OmegaConf to Dict | |
| hf_args = OmegaConf.to_container(cfg.hf, resolve=True) | |
| # add -- in front of keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datasets import load_dataset | |
| from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor | |
| import soundfile as sf | |
| import torch | |
| import jiwer | |
| import fastwer | |
| # librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") | |
| librispeech_eval = load_dataset( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Course: Numerical Analysis | |
| Assignment 4 | |
| 17011675 Lee Won Jun | |
| Department of Software. | |
| Python 3.6 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GlowScript 2.9 VPython | |
| # ์ด๋ฆฐ์์์ ๋ณ | |
| B_612 = sphere(pos=vector(0,0,0), radius = 3,color=color.yellow, texture=textures.earth) | |
| B_612.v = vector(0,0,0) | |
| # ์ด๋ฆฐ์์ | |
| prince = sphere(pos=vector(4,0,0),radius=0.5,color=color.blue, make_trail=True) | |
| prince.mass = 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import argparse | |
| from nltk.tokenize import sent_tokenize | |
| from konlpy.tag import Mecab | |
| def parse_arguments(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--input', type=str, help ="input file path") | |
| parser.add_argument('--out', type=str, help ="write file?", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #define MAX_CITIES 6 | |
| #define MIN(a, b) a < b ? a : b | |
| int main() | |
| { | |
| int A[MAX_CITIES] = { 0, 1, 3, 6 ,11, 17 }; | |
| int H[MAX_CITIES] = { 0, 2, 5, 1, 5, 0 }; | |
| int M[MAX_CITIES] = { 0 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define WIN32_LEAN_AND_MEAN | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <windows.h> | |
| int global = 1; | |
| DWORD WINAPI ThreadFunc(LPVOID); | |
| // DWORD๋ ๋๋ธ์๋ = long | |
| // WINAPI : Windows์ API | |
| // LPVOID : ms์์ ์ฌ์ฉํ๋ void* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| void selectionSort(int a[], int n) { | |
| int i, j, min, tmp; | |
| for ( i = 0; i < n-1; i++) | |
| { | |
| min = i; | |
| for ( j = i+1; j < n; j++) | |
| { | |
| if (a[j] < a[min]) min = j; | |
| } |
NewerOlder