https://github.com/apertium/apertium-recursive

Recursive structural transfer module for Apertium

https://github.com/apertium/apertium-recursive

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.1%) to scientific vocabulary

Keywords

apertium-core apertium-tools

Keywords from Contributors

apertium-languages apertium apertium-incubator morphological-generation apertium-stream-format apertium-trunk apertium-staging
Last synced: 11 months ago · JSON representation

Repository

Recursive structural transfer module for Apertium

Basic Info
Statistics
  • Stars: 6
  • Watchers: 12
  • Forks: 4
  • Open Issues: 40
  • Releases: 6
Topics
apertium-core apertium-tools
Created about 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License Authors

README

# Apertium-recursive

A recursive structural transfer module for Apertium

Compiling
---------

```bash
./autogen.sh
make
```

Running
-------

```bash
# compile the rules file
src/rtx-comp rule-file bytecode-file

# run the rules
src/rtx-proc bytecode-file < input

# decompile the rules and examine the bytecode
src/rtx-decomp bytecode-file text-file

# compile XML rule files
src/trx-comp bytecode-file xml-files...

# generate random sentences from a rules file
apertium-recursive/src/randsen.py start_node pair_directory source_language_directory
```

Options for ```rtx-comp```:
 - ```-e``` don't compile a rule with a particular name
 - ```-l``` load lexicalized weights from a file
 - ```-s``` output summaries of the rules to stderr

Options for ```trx-comp```:
 - ```-l``` load lexicalized weights from a file

Options for ```rtx-proc```:
 - ```-a``` indicates that the input comes from apertium-anaphora
 - ```-f``` trace which parse branches are discarded
 - ```-r``` print which rules are applying
 - ```-s``` trace the execution of the bytecode interpreter
 - ```-t``` mimic the behavior of apertium-transfer and apertium-interchunk
 - ```-T``` print the parse tree rather than applying output rules
 - ```-b``` print both the parse tree and the output
 - ```-m``` set the mode of tree output, available modes are:
   - ```nest``` (default) print the tree as text indented with tabs
   - ```flat``` print the tree as text
   - ```latex``` print the tree as LaTeX source using the ```forest``` library
   - ```dot``` print the tree as a Dot graph
   - ```box``` print the tree using [box-drawing characters](https://en.wikipedia.org/wiki/Box-drawing_character)
 - ```-e``` a combination of ```-f``` and ```-r```
   - Intended use: ```rtx-proc -e -m latex rules.bin < input.txt 2> trace.tex```
 - ```-F``` filter branches for things besides parse errors (experimental)

Testing
-------

```bash
make test
```

Using in a Pair
---------------

In ```Makefile.am``` add:
```
$(PREFIX1).rtx.bin: $(BASENAME).$(PREFIX1).rtx
	rtx-comp $< $@

$(PREFIX2).rtx.bin: $(BASENAME).$(PREFIX2).rtx
	rtx-comp $< $@
```

and add

```
$(PREFIX1).rtx.bin \
$(PREFIX2).rtx.bin
```

to ```TARGETS_COMMON```.

In ```modes.xml```, replace ```apertium-transfer```, ```apertium-interchunk```, and ```apertium-postchunk``` with:
```

  

```

Documentation
-------------

 - GSoC project proposal: https://wiki.apertium.org/wiki/User:Popcorndude/Recursive_Transfer
 - File format documentation: https://wiki.apertium.org/wiki/Apertium-recursive/Formalism
 - Bytecode documentation: https://wiki.apertium.org/wiki/Apertium-recursive/Bytecode
 - Progress reports: https://wiki.apertium.org/wiki/User:Popcorndude/Recursive_Transfer/Progress and https://github.com/apertium/apertium-recursive/issues/1
 - Examples of functioning rule sets can be found in [apertium-eng-kir](https://github.com/apertium/apertium-eng-kir/blob/rtx/apertium-eng-kir.kir-eng.rtx), [`eng-spa.rtx`](eng-spa.rtx), and [`tests/`](tests/)

Owner

  • Name: Apertium
  • Login: apertium
  • Kind: organization
  • Email: apertium-contact@lists.sourceforge.net

Free/open-source platform for developing rule-based machine translation systems and language technology

GitHub Events

Total
  • Create event: 1
  • Issues event: 2
  • Release event: 1
  • Push event: 2
Last Year
  • Create event: 1
  • Issues event: 2
  • Release event: 1
  • Push event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 319
  • Total Committers: 6
  • Avg Commits per committer: 53.167
  • Development Distribution Score (DDS): 0.091
Past Year
  • Commits: 4
  • Committers: 2
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
Daniel Swanson p****e@g****m 290
Tino Didriksen m****l@t****m 18
Daniel D****n 6
Tanmai Khanna k****i@g****m 2
Nick Howell n****l@g****m 2
Kevin Brubeck Unhammer u****l@m****t 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 94
  • Total pull requests: 6
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 7 days
  • Total issue authors: 9
  • Total pull request authors: 5
  • Average comments per issue: 2.28
  • Average comments per pull request: 2.33
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: about 11 hours
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mr-martian (46)
  • ftyers (15)
  • unhammer (11)
  • jonorthwash (6)
  • MarcRiera (4)
  • TinoDidriksen (4)
  • ApertiumBot (4)
  • flammie (2)
  • khannatanmai (1)
Pull Request Authors
  • mr-martian (2)
  • unhammer (1)
  • ahmedsiam0 (1)
  • aanyasinghdhaka (1)
  • khannatanmai (1)
Top Labels
Issue Labels
enhancement (14) idea (6) bug (5) formalism (5) invalid (1) help wanted (1) question (1)
Pull Request Labels

Dependencies

.github/workflows/build.yaml actions
  • actions/checkout v3 composite