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

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

by 이창현, 앨릭스 토머스
August 2021
Beginner to intermediate
440 pages
10h 4m
Korean
Hanbit Media, Inc.
Content preview from 스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다
77
3
장
아파치 스파크의 NLP 라이브러리
데이터는 파티션에 로드되고 일부 문서는 클러스터의 각
mapper
프로세스로 이동한다. 시스템
당 여러 개의
mapper
가 있을 수 있다. 각
mapper
는 문서에서
map
함수를 실행하고 디스크에
결과를 저장한다. 모든
mapper
가 완료되면, 매퍼 단계의 데이터가
뒤섞이고
동일한 키 (이 경우
에는
word
)를 가진 모든 레코드가 동일한 파티션에 있게 된다. 이제 이 데이터가 정렬되어 파
티션 내에서 모든 레코드가 키순으로 정렬한다. 마지막으로, 정렬된 데이터가 로드되고 모든
카운트를 결합하는 각 파티션
reducer
프로세스에 대해
reduce
단계가 호출된다. 이 단계 사
이에 데이터가 디스크에 저장된다.
맵리듀스
MapReduce
는 대부분의 분산 알고리즘을 표현할 수 있지만, 일부는 이 프레임워크 내에
서 표현하기 어렵거나 매우 어색하다. 이것이 맵리듀스의 추상화
abstraction
가 다소 빠르게 발전
한 이유다.
아파치 하둡
Apache
Hadoop
은
하둡 분산 파일 시스템
Hadoop
Distributed
File
System
(
HDFS
)
과 함께 맵리듀
스의 인기 있는 오픈 소스 구현체다. 하둡 프로그램을 작성하려면 입력 형식, 매퍼, 리듀서 및
출력 형식을 선택하거나 정의해야 한다. 더 높은 수준의 프로그램 구현을 지원하는 많은 라이
브러리와 프레임워크가 있다.
아파치 피그
Apache
Pig
는 절차적 코드로 맵리듀스 프로그램을 표현하는 프레임워크다. 그 절차적
특성 덕분에
추출
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