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

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

by 이창현, 앨릭스 토머스
August 2021
Beginner to intermediate
440 pages
10h 4m
Korean
Hanbit Media, Inc.
Content preview from 스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다
421
19
장
NLP 애플리케이션 제작
시스템뿐만 아니라 작업자 시스템에서도 필요로 하는 또 다른 것이다.
Spark
NLP
는 해당 컴
퓨터가 인터넷에 접속하는 한 캐시 설정을 처리한다. 인터넷에 접근할 수 없을 때는
HDFS
와
같은 공유 저장소에 파일을 저장하고 해당 위치에서 로드하도록 코드를 수정할 수 있다.
이 모델 캐시를 사용하려면 영구 디스크 저장소에 대한 접근 권한이 필요하다. 대부분의 배포
시나리오는 이 요구 사항을 충족하지만, 아마존 람다
Amazon
Lambda
에 배포하려 할 때는 좋은 방
법이 아니다.
스파크는 보통 실시간
NLP
애플리케이션에 적합한 솔루션은 아니다. 캐시가 성능을 높여주
지만 스파크의 오버헤드는 최소화한다. 스파크 외부에서 실행되는 사전 학습된 파이프라인인
Spark
NLP
를 사용할 수 있지만, 외부 시나리오에 배포하기 전에 성능 테스트부터 해야 한다.
고려해야 할 또 다른 사항은 제작 환경에서의 메모리 가용성이다.
Spark
NLP
는 정적 임베딩
을 위한 메모리 내 키-값 저장소로
RocksDB
를 사용한다. 이때 환경이 해당 메모리 로드를 지
원할 수 있는지 확인해야 한다. 스파크를 사용할 때는 임베딩을 위한 메모리가 (거의 확실히)
충분하다.
Spark
NLP
가 모델에 엑세스하는 방법을 이야기했다. 이제 텐서플로와 통합하는 방법을 살펴
보자.
19.2
Spark
NLP
와 텐서플로 통합
텐서플로는 대부분의 데이터 과학자가 파이썬 인터페이스에서 사용하지만
C
++와
CUDA
로도
구현된다.
Spark
NLP ...
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