rbtagger 0.3.2 → 0.4.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/README +44 -0
- data/Rakefile +78 -4
- data/ext/rule_tagger/registry.c +4 -4
- data/ext/rule_tagger/registry.h +1 -1
- data/ext/word_tagger/rtagger.cc +23 -1
- data/ext/word_tagger/tagger.cc +9 -4
- data/ext/word_tagger/tagger.h +2 -0
- data/ext/word_tagger/test.rb +2 -2
- data/lib/brill/brown/{LEXICON → Lexicon.rb} +0 -0
- data/lib/brill/tagger.rb +1 -1
- data/lib/rbtagger.rb +0 -3
- data/lib/rbtagger/version.rb +2 -2
- data/lib/word/tagger.rb +2 -1
- metadata +38 -101
- data/COPYING +0 -21
- data/History.txt +0 -4
- data/License.txt +0 -20
- data/Manifest.txt +0 -82
- data/PostInstall.txt +0 -1
- data/README.txt +0 -51
- data/config/hoe.rb +0 -74
- data/config/requirements.rb +0 -15
- data/ext/rule_tagger/mkmf.log +0 -46
- data/ext/word_tagger/mkmf.log +0 -24
- data/ext/word_tagger/test/Makefile +0 -22
- data/ext/word_tagger/test/doc.txt +0 -87
- data/lib/brill/brown/CONTEXTUALRULEFILE +0 -284
- data/lib/brill/brown/LEXICALRULEFILE +0 -148
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/script/txt2html +0 -82
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/extconf.rake +0 -18
- data/tasks/extconf/rule_tagger.rake +0 -43
- data/tasks/extconf/word_tagger.rake +0 -43
- data/tasks/website.rake +0 -17
- data/test/docs/doc0.txt +0 -20
- data/test/docs/doc1.txt +0 -11
- data/test/docs/doc2.txt +0 -52
- data/test/docs/doc3.txt +0 -128
- data/test/docs/doc4.txt +0 -337
- data/test/docs/doc5.txt +0 -497
- data/test/docs/doc6.txt +0 -116
- data/test/docs/doc7.txt +0 -101
- data/test/docs/doc8.txt +0 -25
- data/test/docs/doc9.txt +0 -84
- data/test/fixtures/tags.txt +0 -976
- data/test/test_helper.rb +0 -5
- data/test/test_rule_tagger.rb +0 -151
- data/test/test_word_tagger.rb +0 -47
- data/tools/rakehelp.rb +0 -113
- data/website/index.html +0 -231
- data/website/index.txt +0 -70
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -138
- data/website/template.html.erb +0 -184
data/COPYING
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2008 Todd A. Fisher
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/History.txt
DELETED
data/License.txt
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2008 FIXME full name
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
COPYING
|
2
|
-
History.txt
|
3
|
-
LICENSE
|
4
|
-
License.txt
|
5
|
-
Manifest.txt
|
6
|
-
PostInstall.txt
|
7
|
-
README
|
8
|
-
README.txt
|
9
|
-
Rakefile
|
10
|
-
config/hoe.rb
|
11
|
-
config/requirements.rb
|
12
|
-
ext/rule_tagger/bool.h
|
13
|
-
ext/rule_tagger/darray.c
|
14
|
-
ext/rule_tagger/darray.h
|
15
|
-
ext/rule_tagger/darrayP.h
|
16
|
-
ext/rule_tagger/extconf.rb
|
17
|
-
ext/rule_tagger/lex.c
|
18
|
-
ext/rule_tagger/lex.h
|
19
|
-
ext/rule_tagger/memory.c
|
20
|
-
ext/rule_tagger/memory.h
|
21
|
-
ext/rule_tagger/mkmf.log
|
22
|
-
ext/rule_tagger/rbtagger.c
|
23
|
-
ext/rule_tagger/registry.c
|
24
|
-
ext/rule_tagger/registry.h
|
25
|
-
ext/rule_tagger/registryP.h
|
26
|
-
ext/rule_tagger/ruby-compat.h
|
27
|
-
ext/rule_tagger/rules.c
|
28
|
-
ext/rule_tagger/rules.h
|
29
|
-
ext/rule_tagger/sysdep.h
|
30
|
-
ext/rule_tagger/tagger.c
|
31
|
-
ext/rule_tagger/tagger.h
|
32
|
-
ext/rule_tagger/useful.c
|
33
|
-
ext/rule_tagger/useful.h
|
34
|
-
ext/word_tagger/extconf.rb
|
35
|
-
ext/word_tagger/mkmf.log
|
36
|
-
ext/word_tagger/porter_stemmer.c
|
37
|
-
ext/word_tagger/porter_stemmer.h
|
38
|
-
ext/word_tagger/rtagger.cc
|
39
|
-
ext/word_tagger/tagger.cc
|
40
|
-
ext/word_tagger/tagger.h
|
41
|
-
ext/word_tagger/test.rb
|
42
|
-
ext/word_tagger/test/Makefile
|
43
|
-
ext/word_tagger/test/doc.txt
|
44
|
-
ext/word_tagger/test/test.cc
|
45
|
-
lib/brill/tagger.rb
|
46
|
-
lib/rbtagger.rb
|
47
|
-
lib/rbtagger/version.rb
|
48
|
-
lib/word/tagger.rb
|
49
|
-
lib/brill/brown/CONTEXTUALRULEFILE
|
50
|
-
lib/brill/brown/LEXICALRULEFILE
|
51
|
-
lib/brill/brown/LEXICON
|
52
|
-
script/console
|
53
|
-
script/destroy
|
54
|
-
script/generate
|
55
|
-
script/txt2html
|
56
|
-
setup.rb
|
57
|
-
tasks/deployment.rake
|
58
|
-
tasks/environment.rake
|
59
|
-
tasks/extconf.rake
|
60
|
-
tasks/extconf/rule_tagger.rake
|
61
|
-
tasks/extconf/word_tagger.rake
|
62
|
-
tasks/website.rake
|
63
|
-
test/docs/doc0.txt
|
64
|
-
test/docs/doc1.txt
|
65
|
-
test/docs/doc2.txt
|
66
|
-
test/docs/doc3.txt
|
67
|
-
test/docs/doc4.txt
|
68
|
-
test/docs/doc5.txt
|
69
|
-
test/docs/doc6.txt
|
70
|
-
test/docs/doc7.txt
|
71
|
-
test/docs/doc8.txt
|
72
|
-
test/docs/doc9.txt
|
73
|
-
test/fixtures/tags.txt
|
74
|
-
test/test_helper.rb
|
75
|
-
test/test_rule_tagger.rb
|
76
|
-
test/test_word_tagger.rb
|
77
|
-
tools/rakehelp.rb
|
78
|
-
website/index.html
|
79
|
-
website/index.txt
|
80
|
-
website/javascripts/rounded_corners_lite.inc.js
|
81
|
-
website/stylesheets/screen.css
|
82
|
-
website/template.html.erb
|
data/PostInstall.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
For more information on rbtagger, see http://rbtagger.rubyforge.org
|
data/README.txt
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
= rbtagger
|
2
|
-
|
3
|
-
* http://github.com/taf2/rb-brill-tagger/tree/master
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
A Simple Ruby Rule-Based Part of Speech Tagger
|
8
|
-
|
9
|
-
This work is based on the work of Eric Brill
|
10
|
-
|
11
|
-
Credit for extracting Eric's work into a reusable library goes to Ken Williams as part of his work in creating the Lingua::BrillTagger perl module
|
12
|
-
|
13
|
-
This software is made available under the MIT License, see LICENSE
|
14
|
-
|
15
|
-
== FEATURES/PROBLEMS:
|
16
|
-
|
17
|
-
* Rule based tagger
|
18
|
-
* Word matching tagger
|
19
|
-
|
20
|
-
== SYNOPSIS:
|
21
|
-
|
22
|
-
tagger = Brill::Tagger.new
|
23
|
-
|
24
|
-
== INSTALL:
|
25
|
-
|
26
|
-
* sudo gem install rbtagger
|
27
|
-
|
28
|
-
== LICENSE:
|
29
|
-
|
30
|
-
(The MIT License)
|
31
|
-
|
32
|
-
Copyright (c) 2008 Todd A. Fisher
|
33
|
-
|
34
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
35
|
-
a copy of this software and associated documentation files (the
|
36
|
-
'Software'), to deal in the Software without restriction, including
|
37
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
38
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
39
|
-
permit persons to whom the Software is furnished to do so, subject to
|
40
|
-
the following conditions:
|
41
|
-
|
42
|
-
The above copyright notice and this permission notice shall be
|
43
|
-
included in all copies or substantial portions of the Software.
|
44
|
-
|
45
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
46
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
47
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
48
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
49
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
50
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
51
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/config/hoe.rb
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
require 'rbtagger/version'
|
2
|
-
|
3
|
-
AUTHOR = 'Todd A. Fisher' # can also be an array of Authors
|
4
|
-
EMAIL = 'todd.fisher@gmail.com'
|
5
|
-
DESCRIPTION = "A Simple Ruby Rule-Based Part of Speech Tagger"
|
6
|
-
GEM_NAME = 'rbtagger' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = 'rbtagger' # The unix name for your project
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
-
EXTRA_DEPENDENCIES = [
|
11
|
-
# ['activesupport', '>= 1.3.1']
|
12
|
-
] # An array of rubygem dependencies [name, version]
|
13
|
-
|
14
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
15
|
-
@config = nil
|
16
|
-
RUBYFORGE_USERNAME = "unknown"
|
17
|
-
def rubyforge_username
|
18
|
-
unless @config
|
19
|
-
begin
|
20
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
21
|
-
rescue
|
22
|
-
puts <<-EOS
|
23
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
24
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
25
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
26
|
-
EOS
|
27
|
-
exit
|
28
|
-
end
|
29
|
-
end
|
30
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
REV = nil
|
35
|
-
# UNCOMMENT IF REQUIRED:
|
36
|
-
# REV = YAML.load(`svn info`)['Revision']
|
37
|
-
VERS = RbTagger::VERSION::STRING + (REV ? ".#{REV}" : "")
|
38
|
-
RDOC_OPTS = ['--quiet', '--title', 'ruletagger documentation',
|
39
|
-
"--opname", "index.html",
|
40
|
-
"--line-numbers",
|
41
|
-
"--main", "README",
|
42
|
-
"--inline-source"]
|
43
|
-
|
44
|
-
class Hoe
|
45
|
-
def extra_deps
|
46
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
47
|
-
@extra_deps
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
52
|
-
|
53
|
-
# Generate all the Rake tasks
|
54
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
55
|
-
$hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
56
|
-
p.developer(AUTHOR, EMAIL)
|
57
|
-
p.description = DESCRIPTION
|
58
|
-
p.summary = DESCRIPTION
|
59
|
-
p.url = HOMEPATH
|
60
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
61
|
-
p.test_globs = ["test/**/test_*.rb"]
|
62
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
63
|
-
|
64
|
-
# == Optional
|
65
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
66
|
-
#p.extra_deps = EXTRA_DEPENDENCIES
|
67
|
-
|
68
|
-
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
69
|
-
end
|
70
|
-
|
71
|
-
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
72
|
-
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
73
|
-
$hoe.rsync_args = '-av --delete --ignore-errors'
|
74
|
-
$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
|
data/config/requirements.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
include FileUtils
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
%w[rake hoe newgem rubigen].each do |req_gem|
|
6
|
-
begin
|
7
|
-
require req_gem
|
8
|
-
rescue LoadError
|
9
|
-
puts "This Rakefile requires the '#{req_gem}' RubyGem."
|
10
|
-
puts "Installation: gem install #{req_gem} -y"
|
11
|
-
exit
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
|
data/ext/rule_tagger/mkmf.log
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
have_header: checking for stdlib.h... -------------------- yes
|
2
|
-
|
3
|
-
"gcc -E -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC conftest.c -o conftest.i"
|
4
|
-
checked program was:
|
5
|
-
/* begin */
|
6
|
-
1: #include <stdlib.h>
|
7
|
-
/* end */
|
8
|
-
|
9
|
-
--------------------
|
10
|
-
|
11
|
-
have_header: checking for string.h... -------------------- yes
|
12
|
-
|
13
|
-
"gcc -E -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC conftest.c -o conftest.i"
|
14
|
-
checked program was:
|
15
|
-
/* begin */
|
16
|
-
1: #include <string.h>
|
17
|
-
/* end */
|
18
|
-
|
19
|
-
--------------------
|
20
|
-
|
21
|
-
have_library: checking for main() in -lc... -------------------- yes
|
22
|
-
|
23
|
-
"gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lruby-static -lc -lpthread -ldl -lcrypt -lm -lc"
|
24
|
-
checked program was:
|
25
|
-
/* begin */
|
26
|
-
1: /*top*/
|
27
|
-
2: int main() { return 0; }
|
28
|
-
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
|
29
|
-
/* end */
|
30
|
-
|
31
|
-
--------------------
|
32
|
-
|
33
|
-
have_func: checking for snprintf() in stdio.h... -------------------- yes
|
34
|
-
|
35
|
-
"gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lc -lruby-static -lc -lpthread -ldl -lcrypt -lm -lc"
|
36
|
-
checked program was:
|
37
|
-
/* begin */
|
38
|
-
1: #include <stdio.h>
|
39
|
-
2:
|
40
|
-
3: /*top*/
|
41
|
-
4: int main() { return 0; }
|
42
|
-
5: int t() { void ((*volatile p)()); p = (void ((*)()))snprintf; return 0; }
|
43
|
-
/* end */
|
44
|
-
|
45
|
-
--------------------
|
46
|
-
|
data/ext/word_tagger/mkmf.log
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
have_library: checking for main() in -lc... -------------------- yes
|
2
|
-
|
3
|
-
"gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -Wall conftest.c -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lruby-static -lc -lpthread -ldl -lcrypt -lm -lc"
|
4
|
-
checked program was:
|
5
|
-
/* begin */
|
6
|
-
1: /*top*/
|
7
|
-
2: int main() { return 0; }
|
8
|
-
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
|
9
|
-
/* end */
|
10
|
-
|
11
|
-
--------------------
|
12
|
-
|
13
|
-
have_library: checking for main() in -lstdc++... -------------------- yes
|
14
|
-
|
15
|
-
"gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -Wall conftest.c -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lc -lruby-static -lstdc++ -lc -lpthread -ldl -lcrypt -lm -lc"
|
16
|
-
checked program was:
|
17
|
-
/* begin */
|
18
|
-
1: /*top*/
|
19
|
-
2: int main() { return 0; }
|
20
|
-
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
|
21
|
-
/* end */
|
22
|
-
|
23
|
-
--------------------
|
24
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
CFLAGS=-g -Wall #-fprofile-arcs -ftest-coverage
|
2
|
-
|
3
|
-
all: porter_stemmer.o tagger.o test.o
|
4
|
-
g++ $(CFLAGS) -o testit $^
|
5
|
-
time ./testit doc.txt
|
6
|
-
# gcov -b tagger.cc
|
7
|
-
# valgrind --leak-check=full ./testit
|
8
|
-
test.o: test.cc tagger.h
|
9
|
-
g++ $(CFLAGS) test.cc -c
|
10
|
-
tagger.o: tagger.cc tagger.h porter_stemmer.h
|
11
|
-
g++ $(CFLAGS) tagger.cc -c
|
12
|
-
porter_stemmer.o: porter_stemmer.c porter_stemmer.h
|
13
|
-
gcc $(CFLAGS) porter_stemmer.c -c
|
14
|
-
|
15
|
-
setup:
|
16
|
-
ln -s ../tagger.h
|
17
|
-
ln -s ../tagger.cc
|
18
|
-
ln -s ../porter_stemmer.h
|
19
|
-
ln -s ../porter_stemmer.c
|
20
|
-
|
21
|
-
clean:
|
22
|
-
rm -f tagger.o test.o testit
|
@@ -1,87 +0,0 @@
|
|
1
|
-
Allergies are diseases of the immune system that cause an overreaction to
|
2
|
-
substances called "allergens." Allergies are grouped by the kind of trigger,
|
3
|
-
time of year or where symptoms appear on the body: indoor andoutdoor allergies
|
4
|
-
(also called "hay fever," "seasonal," "perennial" or "nasal" allergies), food
|
5
|
-
and drug allergies, latex allergies, insect allergies, skin allergies and eye
|
6
|
-
allergies. People who have allergies can live healthy and active lives.
|
7
|
-
|
8
|
-
movieMultimedia Allergy Library
|
9
|
-
GlossaryGlossary of Allergy Terms
|
10
|
-
|
11
|
-
What are Allergies | What Causes Allergies | Diagnosis | Treatment |
|
12
|
-
Prevention |
|
13
|
-
|
14
|
-
What Causes Allergies
|
15
|
-
|
16
|
-
The substances that cause allergic disease in people are known as allergens.
|
17
|
-
"Antigens," or protein particles like pollen, food or dander enter our bodies
|
18
|
-
through a variety of ways. If the antigen causes an allergic reaction, that
|
19
|
-
particle is considered an "allergen" – and antigen that triggers an allergic
|
20
|
-
reaction. These allergens can get into our body in several ways:
|
21
|
-
|
22
|
-
* Inhaled into the nose and the lungs. Examples are airborne pollens of
|
23
|
-
* certain trees, grasses and weeds; house dust that include dust mite
|
24
|
-
* particles, mold spores, cat and dog dander and latex dust.
|
25
|
-
* Ingested by mouth. Frequent culprits include shrimp, peanuts and
|
26
|
-
* other nuts.
|
27
|
-
* Injected. Such as medications delivered by needle like
|
28
|
-
* penicillin or other injectable drugs, and venom from insect
|
29
|
-
* stings and bites.
|
30
|
-
* Absorbed through the skin. Plants such as poison ivy, sumac
|
31
|
-
* and oak and latex are examples.
|
32
|
-
|
33
|
-
What Makes Some Pollen Cause Allergies, and Not Others?
|
34
|
-
|
35
|
-
Plant pollens that are carried by the wind cause most
|
36
|
-
allergies of the nose, eyes and lungs. These plants (including
|
37
|
-
certain weeds, trees and grasses) are natural pollutants
|
38
|
-
produced at various times of the year when their small,
|
39
|
-
inconspicuous flowers discharge literally billions of pollen
|
40
|
-
particles.
|
41
|
-
|
42
|
-
Because the particles can be carried significant distances, it
|
43
|
-
is important for you not only to understand local
|
44
|
-
environmental conditions, but also conditions over the broader
|
45
|
-
area of the state or region in which you live. Unlike the
|
46
|
-
wind-pollinated plants, conspicuous wild flowers or flowers
|
47
|
-
used in most residential gardens are pollinated by bees,
|
48
|
-
wasps, and other insects and therefore are not widely capable
|
49
|
-
of producing allergic disease.
|
50
|
-
|
51
|
-
What is the Role of Heredity in Allergy?
|
52
|
-
|
53
|
-
Like baldness, height and eye color, the capacity to become
|
54
|
-
allergic is an inherited characteristic. Yet, although you may
|
55
|
-
be born with the genetic capability to become allergic, you
|
56
|
-
are not automatically allergic to specific allergens. Several
|
57
|
-
factors must be present for allergic sensitivity to be
|
58
|
-
developed:
|
59
|
-
|
60
|
-
* The specific genes acquired from parents.
|
61
|
-
* The exposure to one or more allergens to which you
|
62
|
-
* have a genetically programmed response.
|
63
|
-
* The degree and length of exposure.
|
64
|
-
|
65
|
-
A baby born with the tendency to become allergic
|
66
|
-
to cow's milk, for example, may show allergic
|
67
|
-
symptoms several months after birth. A genetic
|
68
|
-
capability to become allergic to cat dander may
|
69
|
-
take three to four years of cat exposure before
|
70
|
-
the person shows symptoms. These people may also
|
71
|
-
become allergic to other environmental substances
|
72
|
-
with age.
|
73
|
-
|
74
|
-
On the other hand, poison ivy allergy (contact
|
75
|
-
dermatitis) is an example of an allergy in which
|
76
|
-
hereditary background does not play a part. The
|
77
|
-
person with poison ivy allergy first has to be
|
78
|
-
exposed to the oil from the plant. This usually
|
79
|
-
occurs during youth, when a rash does not always
|
80
|
-
appear. However, the first exposure may sensitize
|
81
|
-
or cause the person to become allergic and, when
|
82
|
-
subsequent exposure takes place, a contact
|
83
|
-
dermatitis rash appears and can be quite severe.
|
84
|
-
Many plants are capable of producing this type of
|
85
|
-
rash. Substances other than plants, such as dyes,
|
86
|
-
metals, and chemicals in deodorants and cosmetics,
|
87
|
-
can also cause a similar dermatitis.
|