mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-31 12:39:21 +00:00
python: fix inverted normalized/original string range
This commit is contained in:
@ -77,8 +77,8 @@ impl PyMappingProtocol for IndexableString {
|
|||||||
|
|
||||||
// Get the range from the relevant string
|
// Get the range from the relevant string
|
||||||
let s = match self.t {
|
let s = match self.t {
|
||||||
IndexableStringType::Original => self.s.get_range(range),
|
IndexableStringType::Original => self.s.get_range_original(range),
|
||||||
IndexableStringType::Normalized => self.s.get_range_original(range),
|
IndexableStringType::Normalized => self.s.get_range(range),
|
||||||
};
|
};
|
||||||
|
|
||||||
s.map(|s| s.to_owned())
|
s.map(|s| s.to_owned())
|
||||||
|
Reference in New Issue
Block a user