sanzang 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/HACKING +22 -40
- data/MANUAL +312 -0
- data/README +35 -265
- data/bin/{sanzang-reflow → sanzang} +1 -1
- data/lib/sanzang.rb +12 -35
- data/lib/sanzang/batch_translator.rb +77 -0
- data/lib/sanzang/command/batch.rb +131 -0
- data/lib/sanzang/command/reflow.rb +35 -32
- data/lib/sanzang/command/sanzang_cmd.rb +132 -0
- data/lib/sanzang/command/translate.rb +47 -70
- data/lib/sanzang/text_formatter.rb +1 -1
- data/lib/sanzang/translation_table.rb +34 -49
- data/lib/sanzang/translator.rb +1 -65
- data/lib/sanzang/version.rb +3 -2
- data/test/tc_reflow_encodings.rb +2 -2
- data/test/tc_simple_translation.rb +8 -12
- data/test/utf-8/stage_3.txt +4 -0
- metadata +25 -31
- data/bin/sanzang-translate +0 -21
data/test/utf-8/stage_3.txt
CHANGED
metadata
CHANGED
@@ -1,52 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanzang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lapis Lazuli Texts
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: parallel
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.5.19
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.5.19
|
30
|
-
description: Sanzang is
|
31
|
-
|
32
|
-
ancient
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
License, version 3.
|
27
|
+
description: Sanzang is a program built for machine translation of natural languages.
|
28
|
+
This application is particularly suitable as a translation aid for CJK languages
|
29
|
+
including ancient texts. The translation method is rule-based, and translation rules
|
30
|
+
are stored in flat files as delimited text. This program can also utilize multiprocessing
|
31
|
+
to naturally scale to multiple processors and processor cores. Sanzang is available
|
32
|
+
under the GNU GPL, version 3.
|
37
33
|
email:
|
38
34
|
- lapislazulitexts@gmail.com
|
39
35
|
executables:
|
40
|
-
- sanzang
|
41
|
-
- sanzang-translate
|
36
|
+
- sanzang
|
42
37
|
extensions: []
|
43
38
|
extra_rdoc_files:
|
44
39
|
- HACKING
|
45
40
|
- LICENSE
|
41
|
+
- MANUAL
|
46
42
|
- README
|
47
43
|
files:
|
48
|
-
- bin/sanzang
|
49
|
-
- bin/sanzang-translate
|
44
|
+
- bin/sanzang
|
50
45
|
- test/utf-8/batch/README
|
51
46
|
- test/utf-8/stage_3.txt
|
52
47
|
- test/utf-8/file_4.txt
|
@@ -61,42 +56,41 @@ files:
|
|
61
56
|
- lib/sanzang.rb
|
62
57
|
- lib/sanzang/text_formatter.rb
|
63
58
|
- lib/sanzang/translation_table.rb
|
59
|
+
- lib/sanzang/batch_translator.rb
|
64
60
|
- lib/sanzang/version.rb
|
65
61
|
- lib/sanzang/command/reflow.rb
|
62
|
+
- lib/sanzang/command/sanzang_cmd.rb
|
66
63
|
- lib/sanzang/command/translate.rb
|
64
|
+
- lib/sanzang/command/batch.rb
|
67
65
|
- lib/sanzang/translator.rb
|
68
66
|
- HACKING
|
69
67
|
- LICENSE
|
68
|
+
- MANUAL
|
70
69
|
- README
|
71
|
-
homepage: http://www.lapislazulitexts.com
|
70
|
+
homepage: http://www.lapislazulitexts.com/sanzang/
|
72
71
|
licenses:
|
73
72
|
- GPL-3
|
73
|
+
metadata: {}
|
74
74
|
post_install_message:
|
75
|
-
rdoc_options:
|
76
|
-
- --main
|
77
|
-
- README
|
78
|
-
- --title
|
79
|
-
- Sanzang
|
75
|
+
rdoc_options: []
|
80
76
|
require_paths:
|
81
77
|
- lib
|
82
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
79
|
requirements:
|
85
|
-
- -
|
80
|
+
- - '>='
|
86
81
|
- !ruby/object:Gem::Version
|
87
82
|
version: 1.9.0
|
88
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
84
|
requirements:
|
91
|
-
- -
|
85
|
+
- - '>='
|
92
86
|
- !ruby/object:Gem::Version
|
93
87
|
version: '0'
|
94
88
|
requirements: []
|
95
89
|
rubyforge_project:
|
96
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.0.0
|
97
91
|
signing_key:
|
98
|
-
specification_version:
|
99
|
-
summary:
|
92
|
+
specification_version: 4
|
93
|
+
summary: Simple rule-based machine translation system.
|
100
94
|
test_files:
|
101
95
|
- test/tc_reflow_encodings.rb
|
102
96
|
- test/tc_simple_translation.rb
|
data/bin/sanzang-translate
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# -*- encoding: UTF-8 -*-
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Lapis Lazuli Texts
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it under
|
7
|
-
# the terms of the GNU General Public License as published by the Free Software
|
8
|
-
# Foundation, either version 3 of the License, or (at your option) any later
|
9
|
-
# version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but WITHOUT
|
12
|
-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
13
|
-
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
14
|
-
# details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along with
|
17
|
-
# this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
|
19
|
-
require_relative File.join("..", "lib", "sanzang")
|
20
|
-
|
21
|
-
Kernel.exit(Sanzang::Command::Translate.new.run(ARGV))
|