Text Processing: How to fetch documents from database

monami555
monami555 New Altair Community Member
edited November 5 in Community Q&A
Hello again

I have a problem  I have been struggling with for a few days with no success. Maybe somebody could help me out:

(I am using the Text Processing extension, and a "Process Documents From Data" component from there)

With the "Read Database" component I read text fields from db ("SELECT article_text FROM articles"). I pass the result to "Process Documents From Data". Inside "Process Documents From Data" I put "Tokenizer" and a "breakpoint before".

The document that gets there has null content  ???, and an "article_text" attribute set to the value from db.
And I need the value from db to appear there as the document content instead (as this needed for further processing).

I suppose I am making some very stupid mistake here, I would be grateful for any hints..
Thank you

M.
Tagged:

Answers

  • StaryVena
    StaryVena New Altair Community Member
    Hi,
    you should maybe add "Nominal to Text" operator between Read Database and Process Documents From Data and convert attribute role (with article text) to "text" role.

    Cheers
    Vaclav
  • monami555
    monami555 New Altair Community Member
    THANK YOU it helped :)