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

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

by 이창현, 앨릭스 토머스
August 2021
Beginner to intermediate
440 pages
10h 4m
Korean
Hanbit Media, Inc.
Content preview from 스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다
243
8
장
케라스를 사용한 시퀀스 모델링
8.8
연습 문제: 문자
n
-
gram
문자
n
-
gram
을 사용하도록 언어 모델
RNN
을 수정하자. 따라서 시퀀스는
recurrent
->
2
-
gram
-> [
re
,
cu
,
rr
,
en
,
t
#]
이어야 한다. 필요한 문맥의 양을 반영하기 위해
w
를 업데
이트할 수도 있다.
8.9
연습 문제: 단어 언어 모델
루이스 캐럴이 쓴 『거울 나라의 앨리스』에 나오는 넌센스 시 「
Jabberwocky
」를 가져와서 단어
언어 모델을 구축해보자.
① 시퀀스는 시의 대사가 될 것이다. 예를 들어 “
Twas
brillig
,
and
the
slithy
toves
”, “
Did
gyre
and
gimble
in
the
wabe
:” 등을 볼 수 있다.
Spark
NLP
파이프라인을 사용하여 텍스트를 처리하고 토큰 목
록을 추출한다.
② 인코딩 코드를 변경해야 하며
c2i
,
i2c
,
texts
_
to
_
sequences
및
sequence
_
to
_
texts
가 단어와 함께
작동하도록 업데이트해야 한다.
③ 줄을 대신 생성하려면
generate
_
word
를 업데이트해야 한다.
8.10
참고 자료
●
「
The
Penn
Treebank
:
An
Overview
」(
Springer
,
2003
)
- 가장 널리 사용되는
NLP
데이터셋 중 하나인 펜 트리뱅크
Penn
Treebank
데이터셋의 개요다.
●
「
Long
Short
-
Term
Memory
in
Recurrent
Neural
Networks
」(
EPFL
,
2001
)
-
LSTM
을 설명하는 ...
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