-
Notifications
You must be signed in to change notification settings - Fork 536
/
Copy pathtemplate-with_features.html
41 lines (36 loc) · 1.46 KB
/
template-with_features.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<mindtagger mode="precision">
<template for="each-item">
<strong title="item_id: {{item.id}}">{{item.p1_text}} -- {{item.p2_text}}</strong>
with expectation <strong>{{item.expectation | number:3}}</strong> appeared in:
<blockquote>
<big mindtagger-word-array="item.tokens" array-format="postgres">
<mindtagger-highlight-words from="item.p1_start" to="item.p1_end" with-style="background-color: yellow;"/>
<mindtagger-highlight-words from="item.p2_start" to="item.p2_end" with-style="background-color: cyan;"/>
</big>
</blockquote>
<div class="row" ng-if="item.features">
<!-- Enumerate features with weights (leveraging AngularJS a bit more)-->
<div class="col-sm-offset-1 col-sm-10">
<table class="table table-striped table-condensed table-hover">
<thead><tr>
<th class="col-sm-1">Weight</th>
<th>Feature</th>
</tr></thead>
<tbody>
<tr ng-repeat="feature in item.features | parsedArray:'postgres' track by $index">
<td class="text-right">{{(item.weights | parsedArray:'postgres')[$index] | number:6}}</td>
<th>{{feature}}</th>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div mindtagger-item-details></div>
</div>
</template>
<template for="tags">
<span mindtagger-adhoc-tags></span>
<span mindtagger-note-tags></span>
</template>
</mindtagger>