treebank-transform 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +46 -0
- data/Rakefile +7 -0
- data/bin/treebank-transform +7 -0
- data/examples/cicero_catilina_sample.xml +6889 -0
- data/lib/treebank/alphabet.rb +11 -0
- data/lib/treebank/elliptic_word.rb +42 -0
- data/lib/treebank/sentence.rb +69 -0
- data/lib/treebank/transform/cli.rb +15 -0
- data/lib/treebank/transform/version.rb +5 -0
- data/lib/treebank/transform.rb +36 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/treebank/transform_spec.rb +327 -0
- data/treebank-transform.gemspec +28 -0
- metadata +149 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2c0d1fdc821f9aff905c27ffb543d58bfe82277b
|
4
|
+
data.tar.gz: 3fbea6fcf80fd280cf7bc192986c295c7532b289
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e93580c10f57dae370ba41a98b5b303cf79ceb44ce7af7b827abf74da0e6802ab47bea7588c16eb67bdf0c8aa94ff156669e440de6715ff5b8b2986e438d45e9
|
7
|
+
data.tar.gz: 944c05731f3df681c96132f4f015626fcc374dacaba8f903dc37aea0e9abc9df3c45669b0d98f09b13fdd8d975b35828808d3e5d3dc6ba04095749751ad90805
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 LFDM
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# Treebank::Transform
|
2
|
+
|
3
|
+
[![Version](http://allthebadges.io/LFDM/treebank-transform/badge_fury.png)](http://allthebadges.io/LFDM/treebank-transform/badge_fury)
|
4
|
+
[![Dependencies](http://allthebadges.io/LFDM/treebank-transform/gemnasium.png)](http://allthebadges.io/LFDM/treebank-transform/gemnasium)
|
5
|
+
[![Build Status](http://allthebadges.io/LFDM/treebank-transform/travis.png)](http://allthebadges.io/LFDM/treebank-transform/travis)
|
6
|
+
[![Coverage](http://allthebadges.io/LFDM/treebank-transform/coveralls.png)](http://allthebadges.io/LFDM/treebank-transform/coveralls)
|
7
|
+
[![Code Climate](http://allthebadges.io/LFDM/treebank-transform/code_climate.png)](http://allthebadges.io/LFDM/treebank-transform/code_climate)
|
8
|
+
|
9
|
+
Transforms Perseus Treebank Files.
|
10
|
+
|
11
|
+
Right now only a transformation of 1.5 files to the interim
|
12
|
+
[Arethusa](http://github.com/latin-language-toolkit/arethusa)
|
13
|
+
schema is supported. Elliptic nodes are handled differently these days.
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'treebank-transform'
|
21
|
+
```
|
22
|
+
|
23
|
+
And then execute:
|
24
|
+
|
25
|
+
$ bundle
|
26
|
+
|
27
|
+
Or install it yourself as:
|
28
|
+
|
29
|
+
$ gem install treebank-transform
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
|
33
|
+
You can transform the example file from your command line to check the
|
34
|
+
output of this tool:
|
35
|
+
|
36
|
+
```
|
37
|
+
$ treebank-transform do examples/cicero_catilina_sample.xml
|
38
|
+
```
|
39
|
+
|
40
|
+
## Contributing
|
41
|
+
|
42
|
+
1. Fork it ( https://github.com/[my-github-username]/treebank-transform/fork )
|
43
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
44
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
45
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
46
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED