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

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

by 이창현, 앨릭스 토머스
August 2021
Beginner to intermediate
440 pages
10h 4m
Korean
Hanbit Media, Inc.
Content preview from 스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다
335
13
장
지식 베이스 구축
13.1.3
문제 해결
●
지식 베이스 빌더는 위키 덤프를 가져와
XML
과 텍스트를 처리하는 스크립트일 수 있다. 이때 더 큰 스
파크 파이프라인에서
Spark
NLP
를 사용할 수 있다.
●
빌드 스크립트는 리소스를 모니터링하고 규정 제한에 가까워지면 경고해야 한다.
●
지식 베이스를 저장하려면 데이터베이스가 필요하다. 여기에는 여러 가지 옵션이 있다. 우리는 비교적
잘 알려진 그래프 데이터베이스인
Neo4j
를 사용할 것이다. 그 밖에도 다른 솔루션이 있지만, 그래프 데
이터베이스는 본질적으로 지식 베이스를 용이하게 하는 방식으로 데이터를 구조화한다.
●
Neo4j
의 또 다른 이점은 인간이 쿼리할 수 있는
GUI
와 프로그래밍 쿼리를 위한
REST
API
가 함께 제
공된다는 것이다.
13.2
프로젝트 계획
허용 기준을 정의해보자. 다음과 같은 내용을 수행하는 스크립트가 필요하다.
●
일반적으로 압축된
XML
파일인 위키 덤프를 가져온다.
●
기사 제목과 같은 개체를 추출한다.
●
기사 간 링크와 같은 관계를 추출한다.
●
Neo4j
에 개체 및 관계를 저장한다.
●
지나치게 많은 데이터를 생성할 경우에는 경고한다.
우리는 다음과 같은 작업을 하는 서비스를 원한다.
●
지정된 개체에 대해 ‘
get
related
’ 쿼리를 허용한다. 결과는 적어도 해당 개체의 기사로 연결된 기사여야
한다.
●
500
밀리초 이내에 ‘
get
related
’ 쿼리를 수행한다.
●
사람이 사용할 수 있는 프런트엔드
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