The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Text Processing: How to fetch documents from database
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.
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.
0
Answers
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