class ActiveGenie::DataExtractor::FromInformal
def initialize(text, data_to_extract, config: {})
- Example: Analyze text with litote -
Returns:
-
(Hash)
- The extracted data including litote analysis. In addition to the
Parameters:
-
config
(Hash
) -- Additional config for the extraction process -
data_to_extract
(Hash
) -- Schema defining the data structure to extract -
text
(String
) -- The informal text to analyze
def initialize(text, data_to_extract, config: {}) @text = text @data_to_extract = data_to_extract @config = ActiveGenie::Configuration.to_h(config) end