Method: Langchain::Processors::Eml#parse
- Defined in:
- lib/langchain/processors/eml.rb
#parse(data) ⇒ String
Parse the document and return the cleaned text
16 17 18 19 20 |
# File 'lib/langchain/processors/eml.rb', line 16 def parse(data) mail = Mail.read(data.path) text_content = extract_text_content(mail) clean_content(text_content) end |