mod text segmentation func
fixed Gemfile