-
Notifications
You must be signed in to change notification settings - Fork 8
/
compositor.json
88 lines (88 loc) · 3.89 KB
/
compositor.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "niksrc/ner",
"version": "0.1.4",
"libraries": {
"xv": "^1.1.25"
},
"title": "",
"branch": "",
"style": {
"name": "Swiss",
"componentSet": {
"nav": "nav/BasicNav",
"header": "header/SwissHeader",
"article": "article/SwissArticle",
"footer": "footer/BasicFooter"
},
"fontFamily": "\"Helvetica Neue\", Helvetica, Arial, sans-serif",
"heading": {
"fontWeight": 700,
"letterSpacing": "-0.01em"
},
"layout": {
"fluid": true
},
"colors": {
"text": "#000",
"background": "#fff",
"primary": "#05a",
"secondary": "#444",
"highlight": "#f30",
"border": "#ccc",
"muted": "#eee"
}
},
"content": [
{
"component": "nav",
"links": [
{
"href": "https://github.com/niksrc/ner",
"text": "GitHub"
},
{
"href": "https://npmjs.com/package/ner",
"text": "npm"
}
]
},
{
"component": "header",
"heading": "ner",
"subhead": "Client for Stanford Named Entity Reconginiton",
"children": [
{
"component": "ui/TweetButton",
"text": "ner: Client for Stanford Named Entity Reconginiton",
"url": null
},
{
"component": "ui/GithubButton",
"user": "niksrc",
"repo": "ner"
}
],
"text": "v0.2.2"
},
{
"component": "article",
"metadata": {
"source": "github.readme"
},
"html": "\n<blockquote>\n<p>Client for Stanford NER</p>\n</blockquote>\n<h2>Requirements</h2>\n<p><a href=\"http://nlp.Stanford.edu/software/CRF-NER.shtml\">Stanford NER</a></p>\n<h2>Starting up Stanford NER</h2>\n<p>Use <a href=\"ner-server.sh\">ner-server.sh</a></p>\n<h2>Install</h2>\n<pre>$ npm <span class=\"hljs-keyword\">install</span> <span class=\"hljs-comment\">--save ner</span></pre><h2>Usage</h2>\n<pre><span class=\"hljs-keyword\">const</span> NER = <span class=\"hljs-built_in\">require</span>(<span class=\"hljs-string\">'ner'</span>);\n\n<span class=\"hljs-keyword\">const</span> ner = <span class=\"hljs-keyword\">new</span> NER({\n <span class=\"hljs-attr\">port</span>:<span class=\"hljs-number\">8080</span>,\n <span class=\"hljs-attr\">host</span>:<span class=\"hljs-string\">'172.17.0.2'</span>\n})\n\nner.get(<span class=\"hljs-string\">'Wikipedia is a free-access, free-content Internet encyclopedia, supported and hosted by the non-profit Wikimedia Foundation. Those who can access the site can edit most of its articles.[5] Wikipedia is ranked among the ten most popular websites,[4] and constitutes the Internets largest and most popular general'</span>, (err, res) => {\n <span class=\"hljs-built_in\">console</span>.log(res.entities);\n});</pre><h2>API</h2>\n<h3>new instance</h3>\n<h4>options</h4>\n<h5>port</h5>\n<p>Type: <code>integer</code><br></p>\n<p>Port on which NER server is running.</p>\n<h5>host</h5>\n<p>Type: <code>string</code><br></p>\n<p>HOST of the NER server eg. localhost .</p>\n<h3>ner.get(text, callback)</h3>\n<h4>parms</h4>\n<h4>text</h4>\n<p>Type: <code>string</code><br></p>\n<p>Text to be tagged</p>\n<h4>callback(err, response)</h4>\n<p>Type: <code>function</code><br></p>\n<p>Callback function which recieves the response object.</p>\n<h5>response.entities</h5>\n<p>Parsed entities from the xml server response.</p>\n<h5>response.raw</h5>\n<p>Raw xml response from server</p>\n<h5>response._parsed</h5>\n<p>Internal parser representation (regex matches)</p>\n<h2>License</h2>\n<p>MIT © <a href=\"https://niksrc.github.io\">Nikhil Srivastava</a></p>\n"
},
{
"component": "footer",
"links": [
{
"href": "https://github.com/niksrc/ner",
"text": "GitHub"
},
{
"href": "https://github.com/niksrc",
"text": "niksrc"
}
]
}
]
}