Update README.md
Browse files
README.md
CHANGED
@@ -97,6 +97,25 @@ cd korscideberta/experiments/glue;ย chmod 777 *.sh;
|
|
97 |
|
98 |
</code></pre>
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
### Out-of-Scope Use
|
101 |
|
102 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
|
|
97 |
|
98 |
</code></pre>
|
99 |
|
100 |
+
### pip๋ฅผ ์ด์ฉํ KorSciDeBERTa ์ค์น
|
101 |
+
์ ์ฝ๋๋ ๋ด๋ ค๋ฐ์ ํ์ด์ ํ๊ฒฝ์ ์ค์นํ ์ ์๋ ๊ฒ ์๋๋ผ,
|
102 |
+
๋ด ์ฝ๋์ ๊ฐ์ ๊ณณ( ๋๋ ํน์ ์์น)์ ๋๊ณ importํด์ ์จ์ผํด์ ๋ถํธํ ์ ์์ต๋๋ค.
|
103 |
+
๊ทธ๋์, pip ๋ช
๋ น์ผ๋ก ๊ฐ์ ํ๊ฒฝ(์ฝ๋ค ํ๊ฒฝ)์ ์ค์นํ ์ ์๋๋ก pyproject.toml์ ๊ธฐ์ ํ์๊ณ ,
|
104 |
+
tokenization.py์์ normalize.py์ unicode.py๋ฅผ importํ ๋, "korscideberta."์ ์ถ๊ฐํ์ฌ,
|
105 |
+
korscideberta ํจํค์ง๋ฅผ importํ์ฌ ์ธ ์ ์์ต๋๋ค.
|
106 |
+
|
107 |
+
./ ์์น์์ ๋ค์๊ณผ ๊ฐ์ด ์คํํ๋ฉด, ํ์ฌ ์ฝ๋ค ํ๊ฒฝ์ korscideberta ๋ผ๋ ์ด๋ฆ์ผ๋ก ์ค์น๋ฉ๋๋ค.
|
108 |
+
pyproject.toml์ dependencies๋ฅผ ๊ธฐ์ ํ์ฌ ํ์ํ ํจํค์ง(๋ฒ์ )(eg. sentencepiece, mecab, konlpy)์ ํ์ธํ๊ณ ๊ฐ์ด ์ค์นํฉ๋๋ค.
|
109 |
+
$ pip install .
|
110 |
+
|
111 |
+
์ค์น ํ์๋ ์๋์ ๊ฐ์ด importํด์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
|
112 |
+
|
113 |
+
<pre><code>
|
114 |
+
import korscideberta
|
115 |
+
tokenizer = korscideberta.tokenization_korscideberta_v2.DebertaV2Tokenizer.from_pretrained(path)
|
116 |
+
|
117 |
+
</code></pre>
|
118 |
+
|
119 |
### Out-of-Scope Use
|
120 |
|
121 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|