Class: Boilerpipe::Document::TextBlock
- Inherits:
-
Object
- Object
- Boilerpipe::Document::TextBlock
- Defined in:
- lib/boilerpipe/document/document.rb
Instance Method Summary collapse
-
#has_label?(l) ⇒ Boolean
Adding a mapping from ruby symbols to the format string used on the java side e.g.
Instance Method Details
#has_label?(l) ⇒ Boolean
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
10 11 12 13 |
# File 'lib/boilerpipe/document/document.rb', line 10 def has_label?(l) l = "de.l3s.boilerpipe/#{l.to_s}" if l.is_a?(Symbol) self.hasLabel(l) end |