Code Monkey home page Code Monkey logo

giellalt / lang-mhr Goto Github PK

View Code? Open in Web Editor NEW
2.0 25.0 0.0 76.2 MB

Finite state and Constraint Grammar based analysers and proofing tools, and language resources for the Eastern Mari language

Home Page: https://giellalt.uit.no

License: GNU Lesser General Public License v3.0

Makefile 1.00% Shell 1.61% M4 1.53% Perl 0.06% Regular Expression 0.77% XML 0.08% YAML 4.23% Text 90.71%
finite-state-transducers constraint-grammar minority-language nlp language-resources proofing-tools giellalt-langs maturity-beta geo-russia langfam-uralic

lang-mhr's Introduction

The Eastern Mari (Meadow and Eastern Mari) morphology and tools

Maturity Lemma count GitHub issues Build Status License Desktop speller download Mobile speller download

This repository contains finite state source files for the Eastern Mari language, for building morphological analysers, proofing tools and dictionaries. The data and implementation are licenced under GNU GPL licence, also detailed in the LICENSE. The authors named in the AUTHORS file are available to grant other licencing choices.

Install proofing tools and keyboards for the Eastern Mari language by using the Divvun Installer (some languages are only available via the nightly channel).

Download and test speller files

The speller files downloadable at the top of this page (the *.bhfst files) can be used with divvunspell, to test their performance. These files are the exact same ones as installed on users' computers and mobile phones. Desktop and mobile speller files differ from each other in the error model and should be tested separately — thus also two different downloads.

Documentation

Documentation can be found at:

Core dependencies

In order to compile and use Eastern Mari language morphology and dictionaries, you need:

To install VislCG3 and HFST, just copy/paste this into your Terminal on Mac OS X:

curl https://apertium.projectjj.com/osx/install-nightly.sh | sudo bash

or terminal on Ubuntu, Debian or Windows Subsystem for Linux:

wget https://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
sudo apt-get install cg3 hfst

or terminal on RedHat, Fedora, CentOS or Windows Subsystem for Linux:

wget https://apertium.projectjj.com/rpm/install-nightly.sh -O - | sudo bash
sudo dnf install cg3 hfst

Alternatively, the Apertium wiki has good instructions on how to install the dependencies for Mac OS X and how to install the dependencies on linux

Further details and dependencies are described on the GiellaLT Getting Started pages.

Downloading

Using Git:

git clone https://github.com/giellalt/lang-mhr

Using Subversion:

svn checkout https://github.com/giellalt/lang-mhr.git/trunk lang-mhr

Building and installation

INSTALL describes the GNU build system in detail, but for most users it is the usual:

./autogen.sh # This will automatically clone or check out other GiellaLT dependencies
./configure
make
(as root) make install

Citing

If you use language data from more than one GiellaLT language, consider citing our LREC 2022 article on whole infra:

Linda Wiechetek, Katri Hiovain-Asikainen, Inga Lill Sigga Mikkelsen, Sjur Moshagen, Flammie Pirinen, Trond Trosterud, and Børre Gaup. 2022. Unmasking the Myth of Effortless Big Data - Making an Open Source Multi-lingual Infrastructure and Building Language Resources from Scratch. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 1167–1177, Marseille, France. European Language Resources Association.

If you use bibtex, following is as it is on ACL anthology:

@inproceedings{wiechetek-etal-2022-unmasking,
    title = "Unmasking the Myth of Effortless Big Data - Making an Open Source
    Multi-lingual Infrastructure and Building Language Resources from Scratch",
    author = "Wiechetek, Linda  and
      Hiovain-Asikainen, Katri  and
      Mikkelsen, Inga Lill Sigga  and
      Moshagen, Sjur  and
      Pirinen, Flammie  and
      Trosterud, Trond  and
      Gaup, B{\o}rre",
    booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation
    Conference",
    month = jun,
    year = "2022",
    address = "Marseille, France",
    publisher = "European Language Resources Association",
    url = "https://aclanthology.org/2022.lrec-1.125",
    pages = "1167--1177"
}

lang-mhr's People

Contributors

albbas avatar arnikki avatar bbqsrc avatar carges avatar flammie avatar fu-lab avatar leneantonsen avatar mari-language-com avatar rtxanson avatar rueter avatar sashasimonenko avatar snomos avatar trondtr avatar trondtynnol avatar unhammer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lang-mhr's Issues

empty analyses

I get an empty analysis after , see the following example:

echo "ja \ ja "|hfst-tokenise -cg tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst
"<ja>"
	"ja" ?
: 
"<\\>"
	"\\" N Symbol <W:0.0>
"<>"
	"ʼ" N Symbol <W:0.0>
: 
"<ja>"
	"ja" ?
: 
"<>"
	"ʼ" N Symbol <W:0.0>
:\n
"<>"
	"ʼ" N Symbol <W:0.0>

I have the following hfst/hfst-tokenise versions:

ls -l /usr/local/bin/hfst-tokenise
lrwxr-xr-x  1 car010  wheel  13 Dec  1 18:55 /usr/local/bin/hfst-tokenise -> hfst-tokenize

hfst-info
No tests selected; printing known data
HFST info version: 0.1
HFST packaging: hfst 3.15.2
HFST version: 3.15.2
HFST long version: 300150002
OpenFst supported
SFST supported
foma supported
Unicode support: ICU

No rule to make target 'morpher-gt-desc.thirties.hfst'

make[4]: Entering directory '/build/giella-mhr-0.2.0+g4136~4e9c351f-1~sid1/src/fst'
/usr/bin/mkdir -p `dirname .generated/.stamp`
make[4]: *** No rule to make target 'morpher-gt-desc.thirties.hfst', needed by 'morpher-gt-desc.thirties.hfstol'.  Stop.

The hfst mhr analyzer pushes unrecognized tokens off the margin instead of tagging them ‹?›

The analyzers:

echo 'car Авиафар Почешыже Галилей, Иудей, Иерусалим, Идумей гыч, ' | hfst-tokenise -g $GIELLA_HOME/lang-mhr/tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst

And

echo 'car Авиафар Почешыже Галилей, Иудей, Иерусалим, Идумей гыч, ' | hfst-tokenise -S -g --giella-cg -W $GIELLA_HOME/lang-mhr/tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst| l

both treat three unrecognized tokens car, Авиафар and Идумей in a non-acceptable manner:
Instead of tagging them with a ‹?› question mark, the analyzer pushes them off the left margin.
Screenshot 2023-01-11 at 14 20 10

Strategically placed -'s makes hfst-tokenise enter an infinite loop

This triggers the behaviour:
echo "Тора - ев- рей-влакын ожнысо религиозно-мифологический возыма- шышт." | hfst-tokenise --print-all --giella-cg --unique ./tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst

Adding spaces before and after -'s solves the problem:
echo "Тора - ев - рей - влакын ожнысо религиозно - мифологический возыма - шышт" | hfst-tokenise --print-all --giella-cg --unique ./tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst

Undefined tags

make check reveals the following tags seem not to be declared as multichars:

+Dep
+Der
+Ela
+Ess

In root.lexc there is a tag +Depend, but no +Dep, whereas in the file src/fst/stems/dependents.lexc the only tag used seems to be +Dep. All defined +Der tags has a /xxx part as well, there is no plain +Der tag in root.lexc.

There are also other major errors with lemmas coming up when running make check.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.