@Immutable public final class SpannedRareWordTerm extends Object
RareWordTerm
tied to a text span
Author: SPF
Affiliation: CHIP-NLP
Date: 11/18/13Constructor and Description |
---|
SpannedRareWordTerm(RareWordTerm rareWordTerm,
int startOffset,
int endOffset) |
SpannedRareWordTerm(RareWordTerm rareWordTerm,
TextSpan spanKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object value)
Override default equals method.
|
RareWordTerm |
getRareWordTerm() |
TextSpan |
getTextSpan() |
int |
hashCode()
Override default equals method.
|
public SpannedRareWordTerm(RareWordTerm rareWordTerm, int startOffset, int endOffset)
rareWordTerm
- contains a term from a RareWordDictionary
startOffset
- the start index of the termendOffset
- the end index of the termpublic SpannedRareWordTerm(RareWordTerm rareWordTerm, TextSpan spanKey)
rareWordTerm
- contains a term from a RareWordDictionary
spanKey
- the span of the termpublic TextSpan getTextSpan()
public RareWordTerm getRareWordTerm()
public boolean equals(Object value)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.