lib/pragmatic_segmenter/languages/deutsch.rb in pragmatic_segmenter-0.0.3 vs lib/pragmatic_segmenter/languages/deutsch.rb in pragmatic_segmenter-0.0.4
- old
+ new
@@ -15,9 +15,12 @@
def replace_abbreviations(txt)
PragmaticSegmenter::Languages::Deutsch::AbbreviationReplacer.new(text: txt).replace
end
end
+ class Cleaner < PragmaticSegmenter::Cleaner
+ end
+
class Number < PragmaticSegmenter::Number
# Rubular: http://rubular.com/r/hZxoyQwKT1
NumberPeriodSpaceRule = Rule.new(/(?<=\s[0-9]|\s([1-9][0-9]))\.(?=\s)/, '∯')
# Rubular: http://rubular.com/r/ityNMwdghj