Skip to Content
스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다
book

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

by 이창현, 앨릭스 토머스
August 2021
Beginner to intermediate
440 pages
10h 4m
Korean
Hanbit Media, Inc.
Content preview from 스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다
221
8
장
케라스를 사용한 시퀀스 모델링
}
for st in data_dict['state_set']
}
마지막으로 모든 것을 하나로 묶는
train
메서드가 있다.
def train(observations, states, eps=1e-8):
# 초기화
data_dict = training_data()
# 데이터 탐색, 모든 전이, 초기화 및 출력
for ob_seq, st_seq in zip(observations, states):
update_state(data_dict, ob_seq, st_seq)
calculate_sums(data_dict)
calculate_log_probs(data_dict, eps)
return HMM(list(data_dict['obs_set']), list(data_dict['state_set']),
data_dict['initial_log'], data_dict['emission_log'],
data_dict['transition_log'])
model = train(raw, labels)
이제 텍스트 조각이 주어지면 가장 가능성이 높은 상태의 시퀀스를 계산해야 한다. 이러한 예
측 상태를 사용하여 텍스트 조각을 문장으로 나눌 수 있다. 이때 비터비 알고리즘을 사용한다.
이 알고리즘을 사용하면 가능한
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

정원천, 보리스 숄, 트렌트 스완슨, 피터 야우쇼베츠

Publisher Resources

ISBN: 9791162244654