์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
Tags
- ๋ฅ๋ฌ๋๊ธฐ์ด
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ์ ๊ณต์
- ์์ฐ์ด์ฒ๋ฆฌ ๋ ผ๋ฌธ ๋ฆฌ๋ทฐ
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ์ ๊ณต์ํฉ๊ฒฉํ๊ธฐ
- Python
- few shot dst
- SUMBT:Slot-Utterance Matching for Universal and Scalable Belief Tracking
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์ฑ ์ถ์ฒ
- Leveraging Slot Descriptions for Zero-Shot Cross-Domain Dialogue State Tracking
- MySQL
- How Much Knowledge Can You Pack Into the Parameters of a Language Model?
- ๋ค์ด๋๋ฏน ํ๋ก๊ทธ๋๋ฐ
- dialogue state tracking
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์์ ๋น
- From Machine Reading Comprehension to Dialogue State Tracking: Bridging the Gap
- ๋ฐ์ดํฐ ํฉ์ฑ
- Zero-shot transfer learning with synthesized data for multi-domain dialogue state tracking
- ํ๋ก๊ทธ๋๋จธ์ค
- classification text
- ๋ชจ๋์๋ฅ๋ฌ๋
- ๊ฒ์์์ง
- DST zeroshot learning
- ํ์ด์ฌ์ ํ์ด์ฌ๋ต๊ฒ
- ๋ฐฑ์ค
- 2020์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌํ๊ธฐ
- nlp๋ ผ๋ฌธ๋ฆฌ๋ทฐ
- DST fewshot learning
- til
- Few Shot Dialogue State Tracking using Meta-learning
- fasttext text classification ํ๊ธ
Archives
- Today
- Total
๐ฒ์๋ผ๋๋์ฒญ๋
[์ฅ๊ณ ] ์ฒซ ๋ฒ์งธ ์ฅ๊ณ ์ฑ ์์ฑํ๊ธฐ4(์ ๋๋ฆญ ๋ทฐ) ๋ณธ๋ฌธ
๋ฐ์ํ
https://docs.djangoproject.com/ko/2.2/intro/tutorial04/
๋จ์ํ๊ฒ list๋ฅผ ๋ณด์ฌ์ฃผ๊ฑฐ๋, detail์ ๋ณด์ฌ์ฃผ๋ ์ฝ๋์ ๊ฐ์ ๊ฒฝ์ฐ์๋ generic view๋ผ๊ณ ํด์,
"URL์์ ์ ๋ฌ ๋ ๋งค๊ฐ ๋ณ์์ ๋ฐ๋ผ ๋ฐ์ดํฐ๋ฒ ์ด์ค์์ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ ์ค๋ ๊ฒ๊ณผ ํ ํ๋ฆฟ์ ๋ก๋ํ๊ณ ๋ ๋๋ง ๋ ํ ํ๋ฆฟ์ ๋ฆฌํดํ๋ ๊ธฐ๋ณธ ์น ๊ฐ๋ฐ์ ์ผ๋ฐ์ ์ธ ๊ฒฝ์ฐ๋ฅผ ๋ํ๋ ๋๋ค" ๋ผ๊ณ ํ๋ค. ๊ทธ๋ฆฌ๊ณ ์ด๋ ๊ฒ ์์ฃผ ์ฐ์ด๋ ๋ถ๋ถ์, ์ฅ๊ณ ๋ generic view๋ก ๋ง๋ค์ด ๋์๋ค.
์ด๊ฒ์ ์ฌ์ฉ ํ๋๋ฐฉ๋ฒ์ ์๋์ ๊ฐ๋ค.
1. URLconf์์
1
2
3
4
5
6
7
8
9
10
11
|
from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
path('<int:question_id>/vote/', views.vote, name='vote'),
]
|
cs |
.as_view()๋ผ๋ ํจ์๊ฐ ๋ถ์ด์ผํ๋ค.
2. view ์์
์ด์ ์๋ ํจ์๊ฐ ์๋ํด์ url๊ณผ ํ ํ๋ฆฟ์ ์ฐ๊ฒฐํ๋๋ฐ ์ง๊ธ์ class๊ฐ ์๋ํ๋ค.
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
|
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_question_list'
def get_queryset(self):
"""Return the last five published questions."""
return Question.objects.order_by('-pub_date')[:5]
class DetailView(generic.DetailView):
model = Question
template_name = 'polls/detail.html'
class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html'
|
cs |
๋ฐ์ํ
'django' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฅ๊ณ ] ์ฒซ ๋ฒ์งธ ์ฅ๊ณ ์ฑ ์์ฑํ๊ธฐ 3(view + ํ ํ๋ฆฟ + url) (0) | 2019.09.17 |
---|---|
[์ฅ๊ณ ] ์ฒซ๋ฒ์งธ ์ฅ๊ณ ์ฑ ์์ฑํ๊ธฐ 2-1(๊ด๋ฆฌ์ ์๋ฒ) (0) | 2019.09.17 |
[์ฅ๊ณ ] ์ฒซ ๋ฒ์งธ ์ฅ๊ณ ์ฑ ์์ฑํ๊ธฐ ํํ ๋ฆฌ์ผ 2-1 (0) | 2019.09.17 |
[์ฅ๊ณ ] ์ฒซ ๋ฒ์งธ ์ฅ๊ณ ์ฑ ์์ฑํ๊ธฐ ํํ ๋ฆฌ์ผ 1 (0) | 2019.09.17 |