Sha256: a2f895344bc920b2f71e815333e742e0cc8c34a5b774162dd63be180e2d94077
Contents?: true
Size: 576 Bytes
Versions: 5
Compression:
Stored size: 576 Bytes
Contents
module Boilerpipe module Document java_import 'com.kohlschutter.boilerpipe.document.TextDocument' java_import 'com.kohlschutter.boilerpipe.document.TextBlock' class TextBlock # Adding a mapping from ruby symbols to the format string used on the java side # e.g. de.l3s.boilerpipe/INDICATES_END_OF_TEXT is not the same as INDICATES_END_OF_TEXT # This is only for when we do TextBlock#has_label? from jruby def has_label?(l) l = "de.l3s.boilerpipe/#{l.to_s}" if l.is_a?(Symbol) self.hasLabel(l) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems