koalanlp / kr.bydelta.koala.etri / DependencyResponse

DependencyResponse

data class DependencyResponse (source)

의존구문 분석 결과물

Parameters

id - 의존구문분석 결과 어절의 ID

text - 어절의 표면형

governor - 부모 어절 (지배소)의 ID (Json Response의 'head')

label - 의존관계 명칭 (지배소와 현재 어절의)

dependents - 현재 어절의 피지배소의 ID 목록 (Json Response의 'mod')

weight - 의존구문분석 결과의 신뢰도

Constructors

<init>

의존구문 분석 결과물

DependencyResponse(id: Int, text: String, label: String, governor: Int, dependents: List<Int>, weight: Double)

Properties

dependents

현재 어절의 피지배소의 ID 목록 (Json Response의 'mod')

val dependents: List<Int>

governor

부모 어절 (지배소)의 ID (Json Response의 'head')

val governor: Int

id

의존구문분석 결과 어절의 ID

val id: Int

label

의존관계 명칭 (지배소와 현재 어절의)

val label: String

text

어절의 표면형

val text: String

weight

의존구문분석 결과의 신뢰도

val weight: Double

Functions

toDepEdge

의존관계 Edge로 변환합니다.

fun toDepEdge(words: List<Word>): DepEdge