Giter Site home page Giter Site logo

giellalt / lang-fin Goto Github PK

View Code? Open in Web Editor NEW
5.0 25.0 1.0 37.87 MB

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

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

License: GNU General Public License v3.0

Makefile 0.14% Shell 0.22% M4 0.20% Perl 0.01% Regular Expression 0.05% XML 0.01% YAML 0.02% Text 99.35%
finite-state-transducers constraint-grammar nlp language-resources minority-language proofing-tools giellalt-langs maturity-beta geo-nordic langfam-uralic

lang-fin's Introduction

The Finnish morphology and tools

Maturity Lemma count GitHub issues License Doc Build Status CI/CD Build Status

Download nightly / CI/CD installation packages for testing (contains the core zhfst file(s)):

Windows MacOS Mobile

NB!! Note that the nightly / CI/CD installation packages are not tested for language quality, and might contain regressions and errors.

This repository contains finite state source files for the Finnish language, for building morphological analysers, proofing tools and dictionaries. The data and implementation are licenced under GPLv3 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 Finnish 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 Finnish language morphology and dictionaries, you need:

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

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

Using Subversion:

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

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

Contributors

albbas avatar arnikki avatar bbqsrc avatar ciprian-no avatar dylanhand avatar flammie avatar ftyers avatar leneantonsen avatar lynnda-hill avatar merisiga avatar rtxanson avatar rueter avatar snomos avatar tinodidriksen avatar trondtr avatar trondtynnol avatar unhammer avatar

Stargazers

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

Forkers

flammie

lang-fin's Issues

wrong superlative for Finnish 'halpa'

Hello! I am using giellalt indirectly, through uralicNLP. It seems to generate the incorrect superlative for Finnish 'halpa'. Finnish is not my native language, but according to the learning materials provided in my Finnish language class at university, and also according to Wiktionary, the superlative of 'halpa' should be 'halvin', and not 'halvoin'.

uralicNLP.generate(query="halpa+A+Superl+Sg+Nom", language="fin")

expected: [('halvin', 0.0)]
actual: [('halvoin', 0.0)]

missing past participle for "tietää"

Hello! I have learned that 'tiennyt' is the past participle of 'tietää'. giellalt says it's 'tietänyt'. While wiktionary also lists 'tietänyt', from what I understand, 'tiennyt' seems to be the more common form. Either way, I think that both forms should be generated and recognized.

from uralicNLP.uralicApi import generate
generate(query="tietää+V+Act+PrfPrc+Sg+Nom", language="fin")

expected output:
[('tiennyt', 0.0), ('tietänyt', 0.0)]

actual output:
[('tietänyt', 0.0)]

from uralicNLP.uralicApi import analyze
analyze(query="tiennyt", language="fin")

expected output:
[('tietää+V+Act+PrfPrc+Sg+Nom', 0.0)]

actual output:
[]

numerals forms

e viisikymmentä baaria|hfst-tokenise -cg tools/tokenisers/tokeniser-disamb-gt-desc.pmhfst
"<viisikymmentä>"
   "kymmen" N Sg Par <W:0.0>
       "viisi" N Nom Cmp <W:0.0>
   "kymmenen" Num Sg Par <W:0.0>
       "viisi" Num Sg Nom <W:0.0>
   "kymmentä" <W:0.0>
       "viisi" Num Sg Nom <W:0.0>
:
"<baaria>"
   "baari" N Pl Par <W:0.0>
   "baari" N Sg Par <W:0.0>

Empty "lemma" in -toista compounds

Some of the compound analyses of numbers 11–19 contain an empty lemma followed by the tag +Cmp, such as

yksitoista	yksi+Num+Sg+Nom#+Cmp#toinen+N+Sg+Par
yksitoista	yksi+Num+Card+Sg+Nom#+Cmp#toinen+N+Sg+Par

Not sure if this is actually an error or intended, but it caused some problems in NDS, which expects the +Cmp tag to belong to a lemma. I am creating a guard there just in case anyways.

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.