Class: BrowserWebData::EntitySumarization::Predicate
- Inherits:
-
Object
- Object
- BrowserWebData::EntitySumarization::Predicate
- Includes:
- BrowserWebData::EntitySumarizationConfig
- Defined in:
- lib/browser_web_data_entity_sumarization/entity_sumarization_predicate.rb
Overview
The class include helper methods.
Constant Summary
Constants included from BrowserWebData::EntitySumarizationConfig
BrowserWebData::EntitySumarizationConfig::COMMON_PROPERTIES, BrowserWebData::EntitySumarizationConfig::IDENTICAL_PROPERTY_LIMIT, BrowserWebData::EntitySumarizationConfig::IMPORTANCE_TO_IDENTIFY_MAX_COUNT, BrowserWebData::EntitySumarizationConfig::NO_SENSE_PROPERTIES, BrowserWebData::EntitySumarizationConfig::SCAN_REGEXP
Class Method Summary collapse
-
.unimportant?(property) ⇒ TrueClass, FalseClass
The method helps identify unimportant predicate by constants.
Class Method Details
.unimportant?(property) ⇒ TrueClass, FalseClass
The method helps identify unimportant predicate by constants.
23 24 25 26 |
# File 'lib/browser_web_data_entity_sumarization/entity_sumarization_predicate.rb', line 23 def self.unimportant?(property) property = property.to_s NO_SENSE_PROPERTIES.include?(property) || COMMON_PROPERTIES.include?(property) end |