forked from mlhubber/mlmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpkgidx
More file actions
executable file
·76 lines (59 loc) · 1.61 KB
/
pkgidx
File metadata and controls
executable file
·76 lines (59 loc) · 1.61 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#! /bin/bash
cat <<HEAD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">
code{white-space: pre;}
a{text-decoration: none;}
table{border-spacing: 5px 0;background-color: #eee;}
h2{font-size: 14px;}
.shade{background-color: #eee;max-width: 42em;}
</style>
HEAD
cat pandoc.css
cat <<BODY
</head>
<body>
<h1 id="mlhub-pre-built-model-catalogue">MLHub Pre Built Model Catalogue</h1>
<p>This repository hosts the following pre-built machine learning
models. Please try them out and let us know of any issues you have in
easily and quickly exploring the models. Feedback is welcome through
<a href="https://github.com/mlhubber/mlmodels">github</a>.</p>
<table>
<thead>
<tr class="header">
<th align="left">Title</th>
<th align="left">Version</th>
<th align="left">Description</th>
</tr>
</thead>
<tbody>
BODY
ml avail |\
grep ' : ' |\
perl -pe 's|^(.)([^ ]*) +: +([^ ]*) +: +(.*?) *$|
<tr>
<td align="left">
<a href="https://mlhub.ai/pool/main/$1/$1$2/">$1$2</a>
</td>
<td align="left">$3</td>
<td align="left">$4</td>
</tr>|'
# sed 's|^|<tr>\n<td align="left"><a href="https://mlhub.ai/pool/main/">|' |\
# sed 's| *: |</a></td>\n<td>|' |\
# perl -pe 's| *: |
cat <<KWD
</tbody>
</table>
<h1>Index</h1>
KWD
# Add Keywords
Rscript kwdidx.R
cat <<EOF
</body>
EOF