92
92
<h3 class="section-bar">Methods</h3>
94
94
<div class="name-list">
95
<a href="#M000048">add_attr</a>
96
<a href="#M000050">add_hidden_text</a>
97
<a href="#M000049">add_text</a>
98
<a href="#M000053">attr</a>
99
<a href="#M000052">attr_names</a>
100
<a href="#M000055">cat_texts</a>
101
<a href="#M000056">dump_draft</a>
102
<a href="#M000051">id</a>
103
<a href="#M000057">new</a>
104
<a href="#M000054">texts</a>
95
<a href="#M000062">add_attr</a>
96
<a href="#M000064">add_hidden_text</a>
97
<a href="#M000063">add_text</a>
98
<a href="#M000069">attr</a>
99
<a href="#M000068">attr_names</a>
100
<a href="#M000071">cat_texts</a>
101
<a href="#M000072">dump_draft</a>
102
<a href="#M000067">id</a>
103
<a href="#M000073">keywords</a>
104
<a href="#M000075">new</a>
105
<a href="#M000074">score</a>
106
<a href="#M000065">set_keywords</a>
107
<a href="#M000066">set_score</a>
108
<a href="#M000070">texts</a>
123
127
<div id="methods">
124
128
<h3 class="section-bar">Public Class methods</h3>
126
<div id="method-M000057" class="method-detail">
127
<a name="M000057"></a>
130
<div id="method-M000075" class="method-detail">
131
<a name="M000075"></a>
129
133
<div class="method-heading">
130
<a href="Document.src/M000057.html" target="Code" class="method-signature"
131
onclick="popupCode('Document.src/M000057.html');return false;">
134
<a href="Document.src/M000075.html" target="Code" class="method-signature"
135
onclick="popupCode('Document.src/M000075.html');return false;">
132
136
<span class="method-name">new</span><span class="method-args">(draft = "")</span>
143
147
<h3 class="section-bar">Public Instance methods</h3>
145
<div id="method-M000048" class="method-detail">
146
<a name="M000048"></a>
149
<div id="method-M000062" class="method-detail">
150
<a name="M000062"></a>
148
152
<div class="method-heading">
149
<a href="Document.src/M000048.html" target="Code" class="method-signature"
150
onclick="popupCode('Document.src/M000048.html');return false;">
153
<a href="Document.src/M000062.html" target="Code" class="method-signature"
154
onclick="popupCode('Document.src/M000062.html');return false;">
151
155
<span class="method-name">add_attr</span><span class="method-args">(name, value)</span>
164
<div id="method-M000050" class="method-detail">
165
<a name="M000050"></a>
168
<div id="method-M000064" class="method-detail">
169
<a name="M000064"></a>
167
171
<div class="method-heading">
168
<a href="Document.src/M000050.html" target="Code" class="method-signature"
169
onclick="popupCode('Document.src/M000050.html');return false;">
172
<a href="Document.src/M000064.html" target="Code" class="method-signature"
173
onclick="popupCode('Document.src/M000064.html');return false;">
170
174
<span class="method-name">add_hidden_text</span><span class="method-args">(text)</span>
182
<div id="method-M000049" class="method-detail">
183
<a name="M000049"></a>
186
<div id="method-M000063" class="method-detail">
187
<a name="M000063"></a>
185
189
<div class="method-heading">
186
<a href="Document.src/M000049.html" target="Code" class="method-signature"
187
onclick="popupCode('Document.src/M000049.html');return false;">
190
<a href="Document.src/M000063.html" target="Code" class="method-signature"
191
onclick="popupCode('Document.src/M000063.html');return false;">
188
192
<span class="method-name">add_text</span><span class="method-args">(text)</span>
200
<div id="method-M000053" class="method-detail">
201
<a name="M000053"></a>
204
<div id="method-M000069" class="method-detail">
205
<a name="M000069"></a>
203
207
<div class="method-heading">
204
<a href="Document.src/M000053.html" target="Code" class="method-signature"
205
onclick="popupCode('Document.src/M000053.html');return false;">
208
<a href="Document.src/M000069.html" target="Code" class="method-signature"
209
onclick="popupCode('Document.src/M000069.html');return false;">
206
210
<span class="method-name">attr</span><span class="method-args">(name)</span>
219
<div id="method-M000052" class="method-detail">
220
<a name="M000052"></a>
223
<div id="method-M000068" class="method-detail">
224
<a name="M000068"></a>
222
226
<div class="method-heading">
223
<a href="Document.src/M000052.html" target="Code" class="method-signature"
224
onclick="popupCode('Document.src/M000052.html');return false;">
227
<a href="Document.src/M000068.html" target="Code" class="method-signature"
228
onclick="popupCode('Document.src/M000068.html');return false;">
225
229
<span class="method-name">attr_names</span><span class="method-args">()</span>
229
233
<div class="method-description">
231
Get a list of attribute names of a document object. The return value is a
232
list object of attribute names.
235
Get an array of attribute names of a document object. The return value is
236
an array object of attribute names.
237
<div id="method-M000055" class="method-detail">
238
<a name="M000055"></a>
241
<div id="method-M000071" class="method-detail">
242
<a name="M000071"></a>
240
244
<div class="method-heading">
241
<a href="Document.src/M000055.html" target="Code" class="method-signature"
242
onclick="popupCode('Document.src/M000055.html');return false;">
245
<a href="Document.src/M000071.html" target="Code" class="method-signature"
246
onclick="popupCode('Document.src/M000071.html');return false;">
243
247
<span class="method-name">cat_texts</span><span class="method-args">()</span>
255
<div id="method-M000056" class="method-detail">
256
<a name="M000056"></a>
259
<div id="method-M000072" class="method-detail">
260
<a name="M000072"></a>
258
262
<div class="method-heading">
259
<a href="Document.src/M000056.html" target="Code" class="method-signature"
260
onclick="popupCode('Document.src/M000056.html');return false;">
263
<a href="Document.src/M000072.html" target="Code" class="method-signature"
264
onclick="popupCode('Document.src/M000072.html');return false;">
261
265
<span class="method-name">dump_draft</span><span class="method-args">()</span>
272
<div id="method-M000051" class="method-detail">
273
<a name="M000051"></a>
276
<div id="method-M000067" class="method-detail">
277
<a name="M000067"></a>
275
279
<div class="method-heading">
276
<a href="Document.src/M000051.html" target="Code" class="method-signature"
277
onclick="popupCode('Document.src/M000051.html');return false;">
280
<a href="Document.src/M000067.html" target="Code" class="method-signature"
281
onclick="popupCode('Document.src/M000067.html');return false;">
278
282
<span class="method-name">id</span><span class="method-args">()</span>
290
<div id="method-M000054" class="method-detail">
291
<a name="M000054"></a>
293
<div class="method-heading">
294
<a href="Document.src/M000054.html" target="Code" class="method-signature"
295
onclick="popupCode('Document.src/M000054.html');return false;">
294
<div id="method-M000073" class="method-detail">
295
<a name="M000073"></a>
297
<div class="method-heading">
298
<a href="Document.src/M000073.html" target="Code" class="method-signature"
299
onclick="popupCode('Document.src/M000073.html');return false;">
300
<span class="method-name">keywords</span><span class="method-args">()</span>
304
<div class="method-description">
306
Get attached keywords. The return value is a map object of keywords and
307
their scores in decimal string. If no keyword is attached, `nil’ is
313
<div id="method-M000074" class="method-detail">
314
<a name="M000074"></a>
316
<div class="method-heading">
317
<a href="Document.src/M000074.html" target="Code" class="method-signature"
318
onclick="popupCode('Document.src/M000074.html');return false;">
319
<span class="method-name">score</span><span class="method-args">()</span>
323
<div class="method-description">
325
Get the substitute score. The return value is the substitute score or -1 if
331
<div id="method-M000065" class="method-detail">
332
<a name="M000065"></a>
334
<div class="method-heading">
335
<a href="Document.src/M000065.html" target="Code" class="method-signature"
336
onclick="popupCode('Document.src/M000065.html');return false;">
337
<span class="method-name">set_keywords</span><span class="method-args">(kwords)</span>
341
<div class="method-description">
343
Attach keywords. `kwords’ specifies a map object of keywords. Keys of
344
the map should be keywords of the document and values should be their
345
scores in decimal string. The return value is always `nil’.
350
<div id="method-M000066" class="method-detail">
351
<a name="M000066"></a>
353
<div class="method-heading">
354
<a href="Document.src/M000066.html" target="Code" class="method-signature"
355
onclick="popupCode('Document.src/M000066.html');return false;">
356
<span class="method-name">set_score</span><span class="method-args">(score)</span>
360
<div class="method-description">
362
Set the substitute score. `score’ specifies the substitute score. It
363
it is negative, the substitute score setting is nullified. The return value
364
is always `nil’.
369
<div id="method-M000070" class="method-detail">
370
<a name="M000070"></a>
372
<div class="method-heading">
373
<a href="Document.src/M000070.html" target="Code" class="method-signature"
374
onclick="popupCode('Document.src/M000070.html');return false;">
296
375
<span class="method-name">texts</span><span class="method-args">()</span>
300
379
<div class="method-description">
302
Get a list of sentences of the text. The return value is a list object of
303
sentences of the text.
381
Get an array of sentences of the text. The return value is an array object
382
of sentences of the text.