Reply To: Get list of Sentences from CSV

PennController for IBEX Forums Support Get list of Sentences from CSV Reply To: Get list of Sentences from CSV

#9837
Jeremy
Keymaster

Hi,

You have two options. One is to use one column per sentence, so if you have two sentences you need two columns instead of one for the sentences in your CSV file. Let’s say you name your first column text_1 and the second column text_2, then you would do newController("DashedSentence", {s : [row.text_1, row.text_2]})

Another option is to use javascript to split the string coming from the table into multiple sub-strings. Assuming you are separating your sentences with the comma character (meaning no comma will ever occur as an actual punctuation in a sentence) then you would proceed like this: newController("DashedSentence", {s : row.text_1.split(',') })

Jeremy