pub struct SentSpan {
pub start: usize,
pub end: usize,
pub text: String,
pub tokens: Vec<Morph>,
}Expand description
문장 하나의 구간과 형태소 — EngineWorker::sentences 의 결과 단위.
&input.chars().collect::<Vec<_>>()[start..end] 가 text 와 같다 — 원문에서 그 문장을 그대로 잘라 낼 수 있다.
Fields§
§start: usize입력 전체 기준 글자 위치 (시작)
end: usize입력 전체 기준 글자 위치 (끝, 포함하지 않음)
text: String문장 글 (원문 그대로)
tokens: Vec<Morph>형태소들 (입력 전체 기준 위치, 어절·문장 번호 포함)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SentSpan
impl RefUnwindSafe for SentSpan
impl Send for SentSpan
impl Sync for SentSpan
impl Unpin for SentSpan
impl UnsafeUnpin for SentSpan
impl UnwindSafe for SentSpan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more