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

From HodHood
Jump to: navigation, search
Line 8: Line 8:
 
<th style="width: 1em;">Sentence</th>
 
<th style="width: 1em;">Sentence</th>
 
</tr>{{#for_external_table:<tr>
 
</tr>{{#for_external_table:<tr>
<td style="text-align: left;">{{#arraymap:{{{PositiveWords}}}|,|@|[[@]]}}</td>
+
<td style="text-align: left;">{{#ifeq:{{{PositiveWords}}}||-|{{#arraymap:{{{PositiveWords}}}|,|@|[[@]]}}}}</td>
<td style="text-align: left;">{{#arraymap:{{{NegativeWords}}}|,|@|[[@]]}}</td>
+
<td style="text-align: left;">{{#ifeq:{{{NegativeWords}}}||-|{{#arraymap:{{{NegativeWords}}}|,|@|[[@]]}}}}</td>
 
<td style="text-align: left;">{{{Sentence}}}</td>
 
<td style="text-align: left;">{{{Sentence}}}</td>
 
</tr>}}</table>{{#clear_external_data:}}</includeonly>
 
</tr>}}</table>{{#clear_external_data:}}</includeonly>

Revision as of 22:52, 6 March 2017