시작하기무료로 시작하기

Knowledge Check 2 Question 1

Consider the following two text segments from the Africa Galore dataset:

the vibrant colors and intricate patterns of kente cloth , a symbol of ghanaian royalty and prestige , tell stories of culture , history , and social status . woven on narrow looms by skilled artisans , each strip of kente is a testament to patience and artistry.

bogolanfini , or mud cloth , from mali , is a textile steeped in tradition and symbolism . its distinctive patterns , created using fermented mud and natural dyes , tell stories of malian culture , history , and beliefs . the process of creating bogolanfini is as rich and complex as the designs themselves .

For the purpose of this exercise, all words have been transformed to lowercase and punctuation marks have been split from the words. Assume that punctuation marks are considered to be individual words as well (e.g., “history , culture” is split into the three words “history”, “,”, and “culture”).

Compute the following probabilities of a bigram language model whose probabilities were estimated on only these two text segments:

  • P(, ∣ cloth)
  • P( cloth ∣ ,)
  • P( history ∣ culture)
  • P( history ∣ ,)

이 연습은 강의의 일부입니다

Google DeepMind: Build Your Own Small Language Model

강의 보기

실습형 인터랙티브 연습문제

이론을 실습으로 바꾸는 인터랙티브 연습 중 하나를 만나보세요

연습 시작