koalanlp / kr.bydelta.koala.data / Sentence

Sentence

class Sentence : CanHaveProperty, List<Word> (source)

문장을 표현하는 Property class입니다.

Since
1.x

Constructors

<init>

문장을 구성합니다.

Sentence(words: List<Word>)

Functions

equals

표면형과 더불어, 포함된 어절과 형태소의 배열 순서가 같은지 확인합니다. (reference 기준의 동일함 판단이 아닙니다)

fun equals(other: Any?): Boolean

getCorefGroups

문장 내에 포함된 공통 지시어 또는 대용어들의 묶음을 제공합니다.

fun getCorefGroups(): List<CoreferenceGroup>?

getDependencies

의존구문분석을 했다면, 문장에 포함된 모든 의존구조의 목록을 돌려줍니다.

fun getDependencies(): List<DepEdge>?

getEntities

개체명 분석을 했다면, 문장의 모든 개체명 목록을 돌려줍니다.

fun getEntities(): List<Entity>?

getModifiers

수식언(관형사, 부사) 및 수식언 성격의 어휘를 포함하는 어절들을 가져옵니다.

fun getModifiers(): List<Word>

getNouns

체언(명사, 수사, 대명사) 및 체언 성격의 어휘를 포함하는 어절들을 가져옵니다.

fun getNouns(): List<Word>

getRoles

의미역 분석을 했다면, 문장에 포함된 의미역 구조의 목록을 돌려줌.

fun getRoles(): List<RoleEdge>?

getSyntaxTree

구문분석을 했다면, 최상위 구구조(Phrase)를 돌려줍니다.

fun getSyntaxTree(): SyntaxTree?

getVerbs

용언(동사, 형용사) 및 용언 성격의 어휘를 포함하는 어절들을 가져옵니다.

fun getVerbs(): List<Word>

hashCode

Returns a hash code value for the object. The general contract of hashCode is:

fun hashCode(): Int

setCorefGroups

상호참조 분석/대용어 분석 결과로 얻은 개체명의 묶음들을 저장합니다.

fun setCorefGroups(groups: List<CoreferenceGroup>): Unit

setDepEdges

의존구문분석 결과인 edge들을 저장합니다.

fun setDepEdges(edges: List<DepEdge>): Unit

setEntities

개체명 분석 결과로 얻은 개체명들을 저장합니다.

fun setEntities(entities: List<Entity>): Unit

setRoleEdges

의미역 분석 결과인 edge들을 저장합니다.

fun setRoleEdges(edges: List<RoleEdge>): Unit

setSyntaxTree

최상위 구구조를 지정합니다

fun setSyntaxTree(tree: SyntaxTree): Unit

singleLineString

품사분석 결과를, 1행짜리 String으로 변환합니다.

fun singleLineString(): String

surfaceString

어절의 표면형을 이어붙이되, 지정된 delimiter로 띄어쓰기 된 문장을 반환합니다.

fun surfaceString(delimiter: String = " "): String

toString

Returns a string representation of the object.

fun toString(): String

Companion Object Properties

empty

빈 문장입니다.

val empty: Sentence