Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,16 @@ class Word extends ImmutableArray {
* @inheritDoc
*/

getTagSurface() {
return this.map(m => ({ tag: m._tag, surface: m.surface}))
}
/**
* tag 와 surface 로 이루어진 Object 로 반환합니다.
*
* 예) [ { tag: 'NNG', surface: '고양이' }, { tag: 'JX', surface: '는' } ]
*
* @return {Object} tag 와 surface 로 이루어진 Object
*/

toString() {
return `${this.surface} = ${this.singleLineString()}`;
Expand Down