Code Monkey home page Code Monkey logo

giellalt / lang-fao Goto Github PK

View Code? Open in Web Editor NEW
15.0 23.0 1.0 61.58 MB

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

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

License: GNU General Public License v3.0

Makefile 2.02% Shell 3.74% M4 2.75% Perl 0.06% Regular Expression 1.16% XML 0.21% YAML 9.09% Text 80.98%
finite-state-transducers constraint-grammar minority-language nlp language-resources proofing-tools giellalt-langs maturity-prod geo-nordic langfam-indoeuropean

lang-fao's Introduction

The Faroese 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 Faroese language, for building morphological analysers, proofing tools and dictionaries. The data and implementation are licenced under LICENSE 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 Faroese 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 Faroese 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-fao

Using Subversion:

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

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-fao's People

Contributors

albbas avatar arnikki avatar bbqsrc avatar ciprian-no avatar flammie avatar fo-raettstavari avatar ftyers avatar heinij avatar hjalmar24 avatar juutitta avatar leneantonsen avatar malanmarners avatar meehkal avatar rtxanson avatar rueter avatar snomos avatar tinodidriksen avatar trondtr avatar trondtynnol avatar unhammer avatar unijoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

Forkers

eydunn

lang-fao's Issues

... backtracking around the substring ... but ... no analyses.

There are many error messages like:
Warning: The analysis of "<t.d.>" has backtracking around the substring "<t.d>", but that substring has no analyses.
The lexc lexicon structure is:

t.d ab-dot-trab ;

LEXICON ab-dot-trab ab-dot-noun-trab ; ! assuming noun

LEXICON ab-dot-noun-trab    +ABBR+Gram/TAbbr:    ab-dot-noun ;

LEXICON ab-dot-noun   !!= * **@CODE@**  This is the lexicon for abbrs that must have a period.
+N+Abbr:  dot-infl ;

LEXICON dot-infl   !!= * **@CODE@**
!!= **@LEXNAME@**
DOT ;

LEXICON DOT   !!= * **@CODE@** - Adds the dot to dotted abbreviations.
!!= **@LEXNAME@**

 +Use/-PMatch:%. # ; ! We need the dot here for regular fsts
! Split the abbr + full stop in two segments, but only when using pmatch:
< "@P.Pmatch.Loc@" {.} "+CLB":0 "+Use/PMatch":0 > # ;
! Make a regular ABBR analysis AND backtrack to find alternative analyses:
< "+Use/PMatch":0 "@P.Pmatch.Backtrack@" 0:%. > # ;

The error message is correct: "t.d" (the version without final dot) indeed has no analysis. Now, the situation is:

Either the error message gives rise to concern, and we should change the fst (although I do not see the problem)
Or everything is ok, in which case I suggest we get rid of the error message.

CLB analysis lost after ABBR in grammar checker

echo kvæð. | ./tools/grammarcheckers/modes/trace-faogram-release3-mwe-split.mode 
"<kvæð.>"
	"kvæð" ABBR Gram/IAbbr N Abbr <W:0.0>
;	"." CLB <W:0.0> "<.>"
;		"kvæð" ABBR Gram/IAbbr N Abbr <W:0.0> "<kvæð>" REMOVE:1709:longest-match
;	"." CLB <W:0.0> "<.>"
;		"kvæða" V Imp Sg <W:0.0> "<kvæð>" REMOVE:1709:longest-match
:\n

The correct analysis should have been the second one, which would have given a separate .+CLB analysis after cg-mwesplit.

Please see SME and other Sami Languages for working examples.

fst adds ?? reading in some, but not all cases

"<Føroyum>"
        "Føroyar" N Prop Fem Pl Dat Indef <W:0.0>
        "Føroyum" ?? <W:0.0>
"<.>"
        "." CLB <W:0.0>
: 
"<Tá ið>"
        "tá ið" CS <W:0.0>
: 
"<ístíðirnar>"
        "ístíð" N Fem Pl Acc Def <W:0.0>
        "ístíð" N Fem Pl Nom Def <W:0.0>
        "ístíðirnar" ?? <W:0.0>
        "tíð" N Fem Pl Acc Def <W:10.0>
                "ísur" CmpNP/None N Msc Sg Acc Cmp <W:10.0>
        "tíð" N Fem Pl Nom Def <W:10.0>
                "ísur" CmpNP/None N Msc Sg Acc Cmp <W:10.0>
        "tíð" N Fem Pl Acc Def <W:10.0>
                "ísur" CmpNP/None N Msc Sg Gen Cmp <W:10.0>
        "tíð" N Fem Pl Nom Def <W:10.0>
                "ísur" CmpNP/None N Msc Sg Gen Cmp <W:10.0>
: 
"<vóru>"
        "vera" V Ind Prt Pl <W:0.0>
        "vóru" ?? <W:0.0>
: 
"<av>"
        "av" ?? <W:0.0>
        "av" Interj <W:0.0>
        "av" Pr <W:0.0>
: 
"<um>"
        "um" ?? <W:0.0>
        "um" CS <W:0.0>
        "um" Pr <W:0.0>
: 

... for the command

cat misc/freecorpus.txt |hfst-tokenize -cg tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst

I have no idea what is happening.

Adjektiv har ikkje trebokstavsgrensa for samansetjing ⇒ mystiske forslag

Jf dette:

Bilde 27 08 2020 klokken 09 26

Fyrste og tredje forslag er ok, det andre ikkje. Analysen av det er:

echo eygaóð | hfst-lookup -q src/analyser-gt-norm.hfstol 
eygaóð	eyga+N+Neu+Sg+Gen+Cmp#óður+A+Fem+Sg+Nom+Indef
eygaóð	eyga+N+Neu+Sg+Gen+Cmp#óður+A+Neu+Pl+Acc+Indef
eygaóð	eyga+N+Neu+Sg+Gen+Cmp#óður+A+Neu+Pl+Nom+Indef

Det er opplagt ikkje ei samansetjing me vil ha. @Trondtr - noko du kan sjå på? @fo-raettstavari - synspunkt?

dependency.cg3 - ! is not a comment in CG-3

make[3]: Entering directory '/build/giella-fao-0.2.0+g3666~3246a37f-1~sid1/src/cg3'
echo "! missing dependency dependency.cg3" > dependency.cg3
"/usr/bin/cg-comp" dependency.cg3 dependency.bin
dependency.cg3: Error: Garbage data encountered on line 1 near `! missing dependency`!

! should be #.

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.