ruby-sfst 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Manifest +31 -0
- data/README.rdoc +25 -0
- data/Rakefile +22 -0
- data/ext/sfst_machine/alphabet.C +807 -0
- data/ext/sfst_machine/alphabet.h +281 -0
- data/ext/sfst_machine/basic.C +84 -0
- data/ext/sfst_machine/basic.h +24 -0
- data/ext/sfst_machine/compact.C +616 -0
- data/ext/sfst_machine/compact.h +98 -0
- data/ext/sfst_machine/determinise.C +304 -0
- data/ext/sfst_machine/extconf.rb +4 -0
- data/ext/sfst_machine/fst-compiler.C +2375 -0
- data/ext/sfst_machine/fst-compiler.h +113 -0
- data/ext/sfst_machine/fst-compiler.yy +213 -0
- data/ext/sfst_machine/fst.C +966 -0
- data/ext/sfst_machine/fst.h +365 -0
- data/ext/sfst_machine/interface.C +1838 -0
- data/ext/sfst_machine/interface.h +94 -0
- data/ext/sfst_machine/make-compact.C +328 -0
- data/ext/sfst_machine/make-compact.h +34 -0
- data/ext/sfst_machine/mem.h +74 -0
- data/ext/sfst_machine/operators.C +1131 -0
- data/ext/sfst_machine/sfst_machine.cc +411 -0
- data/ext/sfst_machine/utf8-scanner.C +2197 -0
- data/ext/sfst_machine/utf8-scanner.ll +179 -0
- data/ext/sfst_machine/utf8.C +146 -0
- data/ext/sfst_machine/utf8.h +19 -0
- data/lib/sfst.rb +99 -0
- data/ruby-sfst.gemspec +34 -0
- data/test/test_sfst.fst +3 -0
- data/test/test_sfst.rb +119 -0
- metadata +100 -0
data/CHANGELOG
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
v0.1.0. initial release
|
data/Manifest
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
README.rdoc
|
2
|
+
Rakefile
|
3
|
+
Manifest
|
4
|
+
test/test_sfst.rb
|
5
|
+
test/test_sfst.fst
|
6
|
+
CHANGELOG
|
7
|
+
ext/sfst_machine/fst-compiler.h
|
8
|
+
ext/sfst_machine/utf8.C
|
9
|
+
ext/sfst_machine/operators.C
|
10
|
+
ext/sfst_machine/utf8-scanner.ll
|
11
|
+
ext/sfst_machine/determinise.C
|
12
|
+
ext/sfst_machine/interface.C
|
13
|
+
ext/sfst_machine/compact.h
|
14
|
+
ext/sfst_machine/basic.h
|
15
|
+
ext/sfst_machine/fst.h
|
16
|
+
ext/sfst_machine/make-compact.h
|
17
|
+
ext/sfst_machine/fst-compiler.yy
|
18
|
+
ext/sfst_machine/mem.h
|
19
|
+
ext/sfst_machine/compact.C
|
20
|
+
ext/sfst_machine/basic.C
|
21
|
+
ext/sfst_machine/interface.h
|
22
|
+
ext/sfst_machine/sfst_machine.cc
|
23
|
+
ext/sfst_machine/extconf.rb
|
24
|
+
ext/sfst_machine/alphabet.C
|
25
|
+
ext/sfst_machine/fst.C
|
26
|
+
ext/sfst_machine/alphabet.h
|
27
|
+
ext/sfst_machine/make-compact.C
|
28
|
+
ext/sfst_machine/fst-compiler.C
|
29
|
+
ext/sfst_machine/utf8.h
|
30
|
+
ext/sfst_machine/utf8-scanner.C
|
31
|
+
lib/sfst.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
= ruby-sfst
|
2
|
+
|
3
|
+
A wrapper for the Stuttgart Finite State Transducer Tools (SFST).
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
gem install ruby-sfst
|
8
|
+
|
9
|
+
== License
|
10
|
+
|
11
|
+
As it includes the SFST code directly, the wrapper inherits the GPL2
|
12
|
+
license of the SFST project.
|
13
|
+
|
14
|
+
== Usage
|
15
|
+
|
16
|
+
See http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
|
17
|
+
for details on how to write SFST transducers.
|
18
|
+
|
19
|
+
Currently, <tt>ruby-sfst</tt> only supports simple compilation, analysis
|
20
|
+
and generation using regular and compact transducers. It also only
|
21
|
+
supports UTF-8.
|
22
|
+
|
23
|
+
== Development
|
24
|
+
|
25
|
+
The project is hosted on github on http://github.com/mlj/ruby-sfst.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'echoe'
|
6
|
+
|
7
|
+
Echoe.new('ruby-sfst', '0.1.0') do |p|
|
8
|
+
p.summary = "A wrapper for the Stuttgart Finite State Transducer Tools (SFST)."
|
9
|
+
p.author = 'Marius L. Jøhndal'
|
10
|
+
p.email = "mariuslj (at) ifi [dot] uio (dot) no"
|
11
|
+
p.url = "http://github.com/mlj/ruby-sfst"
|
12
|
+
p.ignore_pattern = ["*.gemspec"]
|
13
|
+
p.rdoc_pattern = ["README.rdoc", "lib/*.rb"]
|
14
|
+
p.rubyforge_name = "sfst"
|
15
|
+
end
|
16
|
+
|
17
|
+
rescue LoadError => boom
|
18
|
+
puts "You are missing a dependency required for meta-operations on this gem."
|
19
|
+
puts "#{boom.to_s.capitalize}."
|
20
|
+
end
|
21
|
+
|
22
|
+
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|