Difference between revisions of "Template:Quran Ayah Sentiment Analysis"

From HodHood
Jump to: navigation, search
Line 8: Line 8:
 
<th>Sentence</th>
 
<th>Sentence</th>
 
</tr>{{#for_external_table:<tr>
 
</tr>{{#for_external_table:<tr>
<td>{{{PositiveWords}}}{{#arraymap:{{{PositiveWords}}}|,|@|[[@]]}}</td>
+
<td>{{#if:{{{PositiveWords}}}|{{#arraymap:{{{PositiveWords}}}|,|@|[[@]]}}|-}}</td>
<td>{{{NegativeWords}}}{{#arraymap:{{{NegativeWords}}}|,|@|[[@]]}}</td>
+
<td>{{#if:{{{NegativeWords}}}|{{#arraymap:{{{NegativeWords}}}|,|@|[[@]]}}|-}}</td>
 
<td>{{{Sentence}}}</td>
 
<td>{{{Sentence}}}</td>
 
</tr>}}</table>{{#clear_external_data:}}</includeonly>
 
</tr>}}</table>{{#clear_external_data:}}</includeonly>

Revision as of 18:40, 3 March 2017