Edit model card
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

99. ์ธ๋„๋„ค์‹œ์•„์–ด ๋ง๋ญ‰์น˜ ๋ฐ์ดํ„ฐ -1. ๊ฐœ์ฒด๋ช… ์ธ์‹ ๋ชจ๋ธ

๋ชจ๋ธ ์„ค๋ช…

2023๋…„ ์ธ๊ณต์ง€๋Šฅ ํ•™์Šต์šฉ ๋ฐ์ดํ„ฐ ๊ตฌ์ถ•์‚ฌ์—…์œผ๋กœ ๊ตฌ์ถ•ํ•œ 2์–ต ํ† ํฐ ๊ทœ๋ชจ์˜ ์ธ๋„๋„ค์‹œ์•„์–ด ๋ง๋ญ‰์น˜ ๋ฐ์ดํ„ฐ์˜ ๊ฐœ์ฒด๋ช… ํƒœ๊น…๋œ ๊ฐ’๋“ค์„ ํ†ตํ•œ ๊ฐœ์ฒด๋ช… ์ธ์‹ ๋ชจ๋ธ ๊ฐœ๋ฐœ

๋ชจ๋ธ ์•„ํ‚คํ…์ฒ˜

BERT(Bidirectional Encoder Trepresentations from Transformer) ๊ตฌ์กฐ๋กœ ์‚ฌ์ „ํ•™์Šต๋œ ์ธ๋„๋„ค์‹œ์•„์–ด ๋ชจ๋ธ Indobert-base-p2(https://huggingface.co/indobenchmark/indobert-base-p2) ํ™œ์šฉ

๋ฐ์ดํ„ฐ ์„ค๋ช…

Input

  1. ํ† ํฐ ๋‹จ์œ„๋กœ ๋„์–ด์“ฐ๊ธฐ๋œ ๋ฌธ์žฅ
    ex :
    "Raw_data": "Seoul , Korea Selatan Soyeon sebelumnya diperkenalkan sebagai salah satu trainee wanita untuk mewakilkan Cube Entertainment di acara survival Mnet , Produce 101 .",

Output

  1. ์ž…๋ ฅ๋œ ๊ฐ ํ† ํฐ์— ๋Œ€ํ•œ ๊ฐœ์ฒด๋ช… ํƒœ๊น… ๊ฒฐ๊ณผ
    ex : "Entities": [ { "entity": "Korea Selatan", "entityClass": "LC-Country", "entityStart": 2, "entityEnd": 3 }, { "entity": "Soyeon", "entityClass": "PS-Name", "entityStart": 4, "entityEnd": 4 }, { "entity": "Cube Entertainment", "entityClass": "BO-Economy", "entityStart": 14, "entityEnd": 15 }, { "entity": "Mnet", "entityClass": "BO-Media", "entityStart": 19, "entityEnd": 19 }, { "entity": "Produce 101", "entityClass": "WA-Video", "entityStart": 21, "entityEnd": 22 } ]

Training dataset

ํ† ํฐ ๋‹จ์œ„๋กœ ๋„์–ด์ง„ ๋ฌธ์žฅ๊ณผ ๊ฐ ํ† ํฐ์— ๋Œ€ํ•œ ๊ฐœ์ฒด๋ช… ํƒœ๊น… ๋ฆฌ์ŠคํŠธ์…‹

  "Raw_data": "Seoul , Korea Selatan Soyeon sebelumnya diperkenalkan sebagai salah satu trainee wanita untuk mewakilkan Cube Entertainment di acara survival Mnet , Produce 101 .",
  "Entities_list": [
    "O",
    "O",
    "LC-Country-B",
    "LC-Country-I",
    "PS-Name-B",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "O",
    "BO-Economy-B",
    "BO-Economy-I",
    "O",
    "O",
    "O",
    "BO-Media-B",
    "O",
    "WA-Video-B",
    "WA-Video-I",
    "O"
  ]

ํ•™์Šต ํŒŒ๋ผ๋ฏธํ„ฐ

    --max_seq_length 128 \
    --save_steps 100000 \
    --per_device_train_batch_size 128 \
    --per_device_eval_batch_size 64 \
    --gradient_accumulation_steps 4 \
    --learning_rate 2e-5 \
    --num_train_epochs 10 \
    --save_total_limit 2 \
    --weight_decay 0.01 \
    --seed 42 --data_seed 42 \
 

ํ‰๊ฐ€ ๊ธฐ์ค€

f-1 score

F1 score = Precsion(์ •๋ฐ€๋„)๊ณผ Recall(์žฌํ˜„์œจ) ์˜ ์กฐํ™” ํ‰๊ท 

  • Precision = TP / (TP + FP)
  • Recall = TP / (TP + FN)
  1. TP: ๊ฐœ์ฒด๋ช… ํƒœ๊น… ๋Œ€์ƒ ํ† ํฐ์— ๋Œ€ํ•ด ๊ฐœ์ฒด ํด๋ž˜์Šค ๋ถ„๋ฅ˜๊ฐ€ ์ •ํ™•ํ•œ ๊ฒฝ์šฐ
  2. FP: ๊ฐœ์ฒด๋ช… ํƒœ๊น… ๋Œ€์ƒ ํ† ํฐ์— ๋Œ€ํ•ด ๊ฐœ์ฒด ํด๋ž˜์Šค ๋ถ„๋ฅ˜๊ฐ€ ๋ถ€์ •ํ™•ํ•œ ๊ฒฝ์šฐ/๊ฐœ์ฒด๋ช… ํƒœ๊น… ๋Œ€์ƒ ํ† ํฐ์ด ์•„๋‹Œ ํ† ํฐ์— ์ž˜๋ชป๋œ ๊ฐœ์ฒด๋กœ ํƒœ๊น…ํ•˜๋Š” ๊ฒฝ์šฐ
  3. FN: ๊ฐœ์ฒด๋ช… ํƒœ๊น… ๋Œ€์ƒ ํ† ํฐ์— ๋Œ€ํ•ด ๊ฐœ์ฒด๋ช…์œผ๋กœ ์ธ์‹ํ•˜์ง€ ๋ชปํ•œ ๊ฒฝ์šฐ

๋ชฉํ‘œ ์ ์ˆ˜ 70 / ๋‹ฌ์„ฑ ์ ์ˆ˜ 93.52

์ €์ž‘๊ถŒ ๋ผ์ด์„ผ์Šค ํ‘œ๊ธฐ

MIT License

Copyright (c) 2024 Arspraxia

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Downloads last month
3