DRMacIver-term-extractor 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +25 -0
- data/README.markdown +40 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/bin/terms.rb +8 -0
- data/lib/term-extractor.rb +195 -0
- data/lib/term-extractor/maxent-2.5.2.jar +0 -0
- data/lib/term-extractor/nlp.rb +262 -0
- data/lib/term-extractor/opennlp-tools.jar +0 -0
- data/lib/term-extractor/snowball.jar +0 -0
- data/lib/term-extractor/trove.jar +0 -0
- data/licenses/Maxent +421 -0
- data/licenses/OpenNLP +421 -0
- data/licenses/Trove +504 -0
- data/licenses/snowball.php +33 -0
- data/models/chunk.bin.gz +0 -0
- data/models/sd.bin.gz +0 -0
- data/models/stopwords +567 -0
- data/models/tag.bin.gz +0 -0
- data/models/tagdict +16204 -0
- data/models/tok.bin.gz +0 -0
- data/term-extractor.gemspec +66 -0
- data/test/examples_spec.rb +131 -0
- data/test/files/1.email +37 -0
- data/test/files/juries_seg_8_v1 +20 -0
- data/test/nlp_spec.rb +231 -0
- data/test/term_extractor_spec.rb +141 -0
- metadata +83 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
require "menu.inc";
|
|
3
|
+
displayHeader("License");
|
|
4
|
+
?>
|
|
5
|
+
<TR><TD>
|
|
6
|
+
<p>
|
|
7
|
+
|
|
8
|
+
All the software given out on this Snowball site is covered by the BSD License (see
|
|
9
|
+
<A HREF="http://www.opensource.org/licenses/bsd-license.html">
|
|
10
|
+
http://www.opensource.org/licenses/bsd-license.html </A>), with
|
|
11
|
+
Copyright (c) 2001, Dr Martin Porter,
|
|
12
|
+
and (for the Java developments)
|
|
13
|
+
Copyright (c) 2002, Richard Boulton.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
</p><p>
|
|
17
|
+
|
|
18
|
+
Essentially, all this means is that you can do what you like with the code,
|
|
19
|
+
except claim another Copyright for it, or claim that it is issued under a different
|
|
20
|
+
license. The software is also issued without warranties, which means that if anyone
|
|
21
|
+
suffers through its use, they cannot come back and sue you.
|
|
22
|
+
You also have to alert anyone to whom you give the Snowball
|
|
23
|
+
software to the fact that it is covered by the BSD license.
|
|
24
|
+
|
|
25
|
+
</p><p>
|
|
26
|
+
|
|
27
|
+
We have not bothered to insert the licensing arrangement into the
|
|
28
|
+
text of the Snowball software.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</p>
|
|
32
|
+
</TD></TR>
|
|
33
|
+
<?php displayFooter(); ?>
|
data/models/chunk.bin.gz
ADDED
|
Binary file
|
data/models/sd.bin.gz
ADDED
|
Binary file
|
data/models/stopwords
ADDED
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
# Derived from stopwords generated by Chris Buckley and Gerard Salton at Cornell University
|
|
2
|
+
# Modified to remove numerals and add a few additional ones.
|
|
3
|
+
a
|
|
4
|
+
a's
|
|
5
|
+
aah
|
|
6
|
+
able
|
|
7
|
+
about
|
|
8
|
+
above
|
|
9
|
+
according
|
|
10
|
+
accordingly
|
|
11
|
+
across
|
|
12
|
+
actually
|
|
13
|
+
after
|
|
14
|
+
afterwards
|
|
15
|
+
again
|
|
16
|
+
against
|
|
17
|
+
ah
|
|
18
|
+
ain't
|
|
19
|
+
all
|
|
20
|
+
allow
|
|
21
|
+
allows
|
|
22
|
+
almost
|
|
23
|
+
alone
|
|
24
|
+
along
|
|
25
|
+
already
|
|
26
|
+
also
|
|
27
|
+
although
|
|
28
|
+
always
|
|
29
|
+
am
|
|
30
|
+
among
|
|
31
|
+
amongst
|
|
32
|
+
an
|
|
33
|
+
and
|
|
34
|
+
another
|
|
35
|
+
any
|
|
36
|
+
anybody
|
|
37
|
+
anyhow
|
|
38
|
+
anyone
|
|
39
|
+
anything
|
|
40
|
+
anyway
|
|
41
|
+
anyways
|
|
42
|
+
anywhere
|
|
43
|
+
apart
|
|
44
|
+
appear
|
|
45
|
+
appreciate
|
|
46
|
+
appropriate
|
|
47
|
+
are
|
|
48
|
+
aren't
|
|
49
|
+
around
|
|
50
|
+
as
|
|
51
|
+
aside
|
|
52
|
+
ask
|
|
53
|
+
asking
|
|
54
|
+
associated
|
|
55
|
+
at
|
|
56
|
+
available
|
|
57
|
+
away
|
|
58
|
+
awfully
|
|
59
|
+
b
|
|
60
|
+
bcc
|
|
61
|
+
be
|
|
62
|
+
became
|
|
63
|
+
because
|
|
64
|
+
become
|
|
65
|
+
becomes
|
|
66
|
+
becoming
|
|
67
|
+
been
|
|
68
|
+
before
|
|
69
|
+
beforehand
|
|
70
|
+
behind
|
|
71
|
+
being
|
|
72
|
+
believe
|
|
73
|
+
below
|
|
74
|
+
beside
|
|
75
|
+
besides
|
|
76
|
+
best
|
|
77
|
+
better
|
|
78
|
+
between
|
|
79
|
+
beyond
|
|
80
|
+
both
|
|
81
|
+
brief
|
|
82
|
+
but
|
|
83
|
+
by
|
|
84
|
+
c
|
|
85
|
+
c'mon
|
|
86
|
+
c's
|
|
87
|
+
came
|
|
88
|
+
can
|
|
89
|
+
can't
|
|
90
|
+
cannot
|
|
91
|
+
cant
|
|
92
|
+
cause
|
|
93
|
+
causes
|
|
94
|
+
cc
|
|
95
|
+
certain
|
|
96
|
+
certainly
|
|
97
|
+
changes
|
|
98
|
+
clearly
|
|
99
|
+
co
|
|
100
|
+
com
|
|
101
|
+
come
|
|
102
|
+
comes
|
|
103
|
+
concerning
|
|
104
|
+
consequently
|
|
105
|
+
consider
|
|
106
|
+
considering
|
|
107
|
+
contain
|
|
108
|
+
containing
|
|
109
|
+
contains
|
|
110
|
+
corresponding
|
|
111
|
+
could
|
|
112
|
+
couldn't
|
|
113
|
+
course
|
|
114
|
+
currently
|
|
115
|
+
d
|
|
116
|
+
definitely
|
|
117
|
+
described
|
|
118
|
+
despite
|
|
119
|
+
did
|
|
120
|
+
didn't
|
|
121
|
+
different
|
|
122
|
+
do
|
|
123
|
+
does
|
|
124
|
+
doesn't
|
|
125
|
+
doing
|
|
126
|
+
don't
|
|
127
|
+
done
|
|
128
|
+
down
|
|
129
|
+
downwards
|
|
130
|
+
during
|
|
131
|
+
e
|
|
132
|
+
each
|
|
133
|
+
edu
|
|
134
|
+
eg
|
|
135
|
+
either
|
|
136
|
+
else
|
|
137
|
+
elsewhere
|
|
138
|
+
enough
|
|
139
|
+
entirely
|
|
140
|
+
especially
|
|
141
|
+
et
|
|
142
|
+
etc
|
|
143
|
+
even
|
|
144
|
+
ever
|
|
145
|
+
every
|
|
146
|
+
everybody
|
|
147
|
+
everyone
|
|
148
|
+
everything
|
|
149
|
+
everywhere
|
|
150
|
+
ex
|
|
151
|
+
exactly
|
|
152
|
+
example
|
|
153
|
+
except
|
|
154
|
+
f
|
|
155
|
+
far
|
|
156
|
+
few
|
|
157
|
+
followed
|
|
158
|
+
following
|
|
159
|
+
follows
|
|
160
|
+
for
|
|
161
|
+
former
|
|
162
|
+
formerly
|
|
163
|
+
from
|
|
164
|
+
further
|
|
165
|
+
furthermore
|
|
166
|
+
fwd
|
|
167
|
+
g
|
|
168
|
+
get
|
|
169
|
+
gets
|
|
170
|
+
getting
|
|
171
|
+
given
|
|
172
|
+
gives
|
|
173
|
+
go
|
|
174
|
+
goes
|
|
175
|
+
going
|
|
176
|
+
gone
|
|
177
|
+
got
|
|
178
|
+
gotten
|
|
179
|
+
greetings
|
|
180
|
+
h
|
|
181
|
+
had
|
|
182
|
+
hadn't
|
|
183
|
+
happens
|
|
184
|
+
hardly
|
|
185
|
+
has
|
|
186
|
+
hasn't
|
|
187
|
+
have
|
|
188
|
+
haven't
|
|
189
|
+
having
|
|
190
|
+
he
|
|
191
|
+
he's
|
|
192
|
+
hello
|
|
193
|
+
help
|
|
194
|
+
hence
|
|
195
|
+
her
|
|
196
|
+
here
|
|
197
|
+
here's
|
|
198
|
+
hereafter
|
|
199
|
+
hereby
|
|
200
|
+
herein
|
|
201
|
+
hereupon
|
|
202
|
+
hers
|
|
203
|
+
herself
|
|
204
|
+
hi
|
|
205
|
+
him
|
|
206
|
+
himself
|
|
207
|
+
his
|
|
208
|
+
hither
|
|
209
|
+
hm
|
|
210
|
+
hmm
|
|
211
|
+
hopefully
|
|
212
|
+
how
|
|
213
|
+
howbeit
|
|
214
|
+
however
|
|
215
|
+
i
|
|
216
|
+
i'd
|
|
217
|
+
i'll
|
|
218
|
+
i'm
|
|
219
|
+
i've
|
|
220
|
+
ie
|
|
221
|
+
if
|
|
222
|
+
ignored
|
|
223
|
+
immediate
|
|
224
|
+
in
|
|
225
|
+
inasmuch
|
|
226
|
+
inc
|
|
227
|
+
indeed
|
|
228
|
+
indicate
|
|
229
|
+
indicated
|
|
230
|
+
indicates
|
|
231
|
+
inner
|
|
232
|
+
insofar
|
|
233
|
+
instead
|
|
234
|
+
into
|
|
235
|
+
inward
|
|
236
|
+
is
|
|
237
|
+
isn't
|
|
238
|
+
it
|
|
239
|
+
it'd
|
|
240
|
+
it'll
|
|
241
|
+
it's
|
|
242
|
+
its
|
|
243
|
+
itself
|
|
244
|
+
j
|
|
245
|
+
just
|
|
246
|
+
k
|
|
247
|
+
keep
|
|
248
|
+
keeps
|
|
249
|
+
kept
|
|
250
|
+
know
|
|
251
|
+
knows
|
|
252
|
+
known
|
|
253
|
+
l
|
|
254
|
+
last
|
|
255
|
+
lately
|
|
256
|
+
later
|
|
257
|
+
latter
|
|
258
|
+
latterly
|
|
259
|
+
least
|
|
260
|
+
less
|
|
261
|
+
lest
|
|
262
|
+
let
|
|
263
|
+
let's
|
|
264
|
+
like
|
|
265
|
+
liked
|
|
266
|
+
likely
|
|
267
|
+
likewise
|
|
268
|
+
little
|
|
269
|
+
look
|
|
270
|
+
looking
|
|
271
|
+
looks
|
|
272
|
+
ltd
|
|
273
|
+
m
|
|
274
|
+
mainly
|
|
275
|
+
many
|
|
276
|
+
may
|
|
277
|
+
maybe
|
|
278
|
+
me
|
|
279
|
+
mean
|
|
280
|
+
meanwhile
|
|
281
|
+
merely
|
|
282
|
+
might
|
|
283
|
+
more
|
|
284
|
+
moreover
|
|
285
|
+
most
|
|
286
|
+
mostly
|
|
287
|
+
much
|
|
288
|
+
must
|
|
289
|
+
my
|
|
290
|
+
myself
|
|
291
|
+
n
|
|
292
|
+
name
|
|
293
|
+
namely
|
|
294
|
+
nd
|
|
295
|
+
near
|
|
296
|
+
nearly
|
|
297
|
+
necessary
|
|
298
|
+
need
|
|
299
|
+
needs
|
|
300
|
+
neither
|
|
301
|
+
never
|
|
302
|
+
nevertheless
|
|
303
|
+
new
|
|
304
|
+
next
|
|
305
|
+
no
|
|
306
|
+
nobody
|
|
307
|
+
non
|
|
308
|
+
none
|
|
309
|
+
noone
|
|
310
|
+
nor
|
|
311
|
+
normally
|
|
312
|
+
not
|
|
313
|
+
nothing
|
|
314
|
+
novel
|
|
315
|
+
now
|
|
316
|
+
nowhere
|
|
317
|
+
o
|
|
318
|
+
obviously
|
|
319
|
+
of
|
|
320
|
+
off
|
|
321
|
+
often
|
|
322
|
+
oh
|
|
323
|
+
ok
|
|
324
|
+
okay
|
|
325
|
+
old
|
|
326
|
+
on
|
|
327
|
+
once
|
|
328
|
+
ones
|
|
329
|
+
only
|
|
330
|
+
onto
|
|
331
|
+
or
|
|
332
|
+
other
|
|
333
|
+
others
|
|
334
|
+
otherwise
|
|
335
|
+
ought
|
|
336
|
+
our
|
|
337
|
+
ours
|
|
338
|
+
ourselves
|
|
339
|
+
out
|
|
340
|
+
outside
|
|
341
|
+
over
|
|
342
|
+
overall
|
|
343
|
+
own
|
|
344
|
+
p
|
|
345
|
+
particular
|
|
346
|
+
particularly
|
|
347
|
+
per
|
|
348
|
+
perhaps
|
|
349
|
+
placed
|
|
350
|
+
please
|
|
351
|
+
plus
|
|
352
|
+
possible
|
|
353
|
+
presumably
|
|
354
|
+
probably
|
|
355
|
+
provides
|
|
356
|
+
q
|
|
357
|
+
que
|
|
358
|
+
quite
|
|
359
|
+
qv
|
|
360
|
+
r
|
|
361
|
+
rather
|
|
362
|
+
rd
|
|
363
|
+
re
|
|
364
|
+
really
|
|
365
|
+
reasonably
|
|
366
|
+
regarding
|
|
367
|
+
regardless
|
|
368
|
+
regards
|
|
369
|
+
relatively
|
|
370
|
+
respectively
|
|
371
|
+
right
|
|
372
|
+
s
|
|
373
|
+
said
|
|
374
|
+
same
|
|
375
|
+
saw
|
|
376
|
+
say
|
|
377
|
+
saying
|
|
378
|
+
says
|
|
379
|
+
secondly
|
|
380
|
+
see
|
|
381
|
+
seeing
|
|
382
|
+
seem
|
|
383
|
+
seemed
|
|
384
|
+
seeming
|
|
385
|
+
seems
|
|
386
|
+
seen
|
|
387
|
+
self
|
|
388
|
+
selves
|
|
389
|
+
sensible
|
|
390
|
+
sent
|
|
391
|
+
serious
|
|
392
|
+
seriously
|
|
393
|
+
several
|
|
394
|
+
shall
|
|
395
|
+
she
|
|
396
|
+
should
|
|
397
|
+
shouldn't
|
|
398
|
+
since
|
|
399
|
+
so
|
|
400
|
+
some
|
|
401
|
+
somebody
|
|
402
|
+
somehow
|
|
403
|
+
someone
|
|
404
|
+
something
|
|
405
|
+
sometime
|
|
406
|
+
sometimes
|
|
407
|
+
somewhat
|
|
408
|
+
somewhere
|
|
409
|
+
soon
|
|
410
|
+
sorry
|
|
411
|
+
specified
|
|
412
|
+
specify
|
|
413
|
+
specifying
|
|
414
|
+
still
|
|
415
|
+
sub
|
|
416
|
+
such
|
|
417
|
+
sup
|
|
418
|
+
sure
|
|
419
|
+
t
|
|
420
|
+
t's
|
|
421
|
+
take
|
|
422
|
+
taken
|
|
423
|
+
tell
|
|
424
|
+
tends
|
|
425
|
+
th
|
|
426
|
+
than
|
|
427
|
+
thank
|
|
428
|
+
thanks
|
|
429
|
+
thanx
|
|
430
|
+
that
|
|
431
|
+
that's
|
|
432
|
+
thats
|
|
433
|
+
the
|
|
434
|
+
their
|
|
435
|
+
theirs
|
|
436
|
+
them
|
|
437
|
+
themselves
|
|
438
|
+
then
|
|
439
|
+
thence
|
|
440
|
+
there
|
|
441
|
+
there's
|
|
442
|
+
thereafter
|
|
443
|
+
thereby
|
|
444
|
+
therefore
|
|
445
|
+
therein
|
|
446
|
+
theres
|
|
447
|
+
thereupon
|
|
448
|
+
these
|
|
449
|
+
they
|
|
450
|
+
they'd
|
|
451
|
+
they'll
|
|
452
|
+
they're
|
|
453
|
+
they've
|
|
454
|
+
think
|
|
455
|
+
this
|
|
456
|
+
thorough
|
|
457
|
+
thoroughly
|
|
458
|
+
those
|
|
459
|
+
though
|
|
460
|
+
through
|
|
461
|
+
throughout
|
|
462
|
+
thru
|
|
463
|
+
thus
|
|
464
|
+
to
|
|
465
|
+
together
|
|
466
|
+
too
|
|
467
|
+
took
|
|
468
|
+
toward
|
|
469
|
+
towards
|
|
470
|
+
tried
|
|
471
|
+
tries
|
|
472
|
+
truly
|
|
473
|
+
try
|
|
474
|
+
trying
|
|
475
|
+
twice
|
|
476
|
+
u
|
|
477
|
+
un
|
|
478
|
+
under
|
|
479
|
+
unfortunately
|
|
480
|
+
unless
|
|
481
|
+
unlikely
|
|
482
|
+
until
|
|
483
|
+
unto
|
|
484
|
+
up
|
|
485
|
+
upon
|
|
486
|
+
us
|
|
487
|
+
use
|
|
488
|
+
used
|
|
489
|
+
useful
|
|
490
|
+
uses
|
|
491
|
+
using
|
|
492
|
+
usually
|
|
493
|
+
uucp
|
|
494
|
+
v
|
|
495
|
+
value
|
|
496
|
+
various
|
|
497
|
+
very
|
|
498
|
+
via
|
|
499
|
+
viz
|
|
500
|
+
vs
|
|
501
|
+
w
|
|
502
|
+
want
|
|
503
|
+
wants
|
|
504
|
+
was
|
|
505
|
+
wasn't
|
|
506
|
+
way
|
|
507
|
+
we
|
|
508
|
+
we'd
|
|
509
|
+
we'll
|
|
510
|
+
we're
|
|
511
|
+
we've
|
|
512
|
+
welcome
|
|
513
|
+
well
|
|
514
|
+
went
|
|
515
|
+
were
|
|
516
|
+
weren't
|
|
517
|
+
what
|
|
518
|
+
what's
|
|
519
|
+
whatever
|
|
520
|
+
when
|
|
521
|
+
whence
|
|
522
|
+
whenever
|
|
523
|
+
where
|
|
524
|
+
where's
|
|
525
|
+
whereafter
|
|
526
|
+
whereas
|
|
527
|
+
whereby
|
|
528
|
+
wherein
|
|
529
|
+
whereupon
|
|
530
|
+
wherever
|
|
531
|
+
whether
|
|
532
|
+
which
|
|
533
|
+
while
|
|
534
|
+
whither
|
|
535
|
+
who
|
|
536
|
+
who's
|
|
537
|
+
whoever
|
|
538
|
+
whole
|
|
539
|
+
whom
|
|
540
|
+
whose
|
|
541
|
+
why
|
|
542
|
+
will
|
|
543
|
+
willing
|
|
544
|
+
wish
|
|
545
|
+
with
|
|
546
|
+
within
|
|
547
|
+
without
|
|
548
|
+
won't
|
|
549
|
+
wonder
|
|
550
|
+
would
|
|
551
|
+
would
|
|
552
|
+
wouldn't
|
|
553
|
+
x
|
|
554
|
+
y
|
|
555
|
+
yes
|
|
556
|
+
yet
|
|
557
|
+
you
|
|
558
|
+
you'd
|
|
559
|
+
you'll
|
|
560
|
+
you're
|
|
561
|
+
you've
|
|
562
|
+
your
|
|
563
|
+
yours
|
|
564
|
+
yourself
|
|
565
|
+
yourselves
|
|
566
|
+
z
|
|
567
|
+
|