syntaxmaker

The NLG tool for Finnish

https://github.com/mikahama/syntaxmaker

Science Score: 67.0%

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

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

finnish finnish-language inflection morphological-generation natural-language-generation natural-language-processing nlg python-library surface-realization syntax syntax-maker
Last synced: 4 months ago · JSON representation ·

Repository

The NLG tool for Finnish

Basic Info
Statistics
  • Stars: 23
  • Watchers: 2
  • Forks: 4
  • Open Issues: 0
  • Releases: 4
Topics
finnish finnish-language inflection morphological-generation natural-language-generation natural-language-processing nlg python-library surface-realization syntax syntax-maker
Created over 10 years ago · Last pushed about 2 years ago
Metadata Files
Readme Funding License Citation

README.md

Syntax maker

DOI

The tool NLG tool for Finnish by Mika Hämäläinen

Syntax maker is the natural language generation tool for generating syntactically correct sentences in Finnish automatically. The tool is especially useful in the case of Finnish which has such a high diversity in its morphosyntax. All you need to know are the lemmas and their parts-of-speech and syntax maker will take care of the rest.

For instance, just throw in words rantaleijona, uneksia, korkea and aalto and you will get rantaleijonat uneksivat korkeista aalloista. So you will get the morphology right automatically! Don't believe me? Just take a look at this tutorial to find out how.

Installing

Run

pip install syntaxmaker
python -m uralicNLP.download -l fin

Usage

An example for generating a sentence in Finnish:

from syntaxmaker.syntax_maker import *
vp = create_verb_pharse("antaa")
subject = create_phrase("NP", "hevonen", {"NUM": "PL"})

dobject = create_phrase("NP", "lahja", {"NUM": "PL"})
dobject.components["attribute"] = create_phrase("AP", "mahtava")
dobject.components["attribute"].components["attribute"] = create_phrase("AdvP", "erittäin")

indobject = create_phrase("NP", "lehmä")
vp.components["subject"] = subject
vp.components["dir_object"] = dobject
vp.components["indir_object"] = indobject
print(vp)
>> hevoset antavat erittäin mahtavia lahjoja lehmälle

Go to Creating a sentence, the basics for a quick start guide.

A good source of example code with the expected output can be found in the Travis test file.

Don't forget to read the Wiki for more instructions.

Cite

If you use Syntax Maker in any academic publication, please cite it as follows:

Hämäläinen, Mika and Rueter, Jack 2018. Development of an Open Source Natural Language Generation Tool for Finnish. In Proceedings of the Fourth International Workshop on Computational Linguistics of Uralic Languages, 51–58.

More information?

Just go ahead and take a look at the wiki or my blog post about Syntax maker.

Owner

  • Name: Mika Hämäläinen
  • Login: mikahama
  • Kind: user
  • Location: Helsinki
  • Company: Fly for Points

PhD in NLP. Currently working at Metropolia University of Applied Sciences as an AI manager.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Syntax Maker
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Mika
    family-names: Hämäläinen
  - given-names: Jack
    family-names: Rueter
identifiers:
  - type: doi
    value: 10.5281/zenodo.1143056
    description: Zenodo
repository-code: 'https://github.com/mikahama/syntaxmaker'
date-released: '2018-01-09'
preferred-citation:
  type: article
  authors:
  - family-names: "Hämäläinen"
    given-names: "Mika"
  - family-names: "Rueter"
    given-names: "Jack"
  journal: "Proceedings of the Fourth International Workshop on Computational Linguistics of Uralic Languages"
  title: "Development of an Open Source Natural Language Generation Tool for Finnish"
  year: 2018

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 46
  • Total Committers: 4
  • Avg Commits per committer: 11.5
  • Development Distribution Score (DDS): 0.522
Top Committers
Name Email Commits
Hämäläinen, Mika K m****n@h****i 22
Mika Hämäläinen m****a@u****m 19
Mika Hämäläinen m****a@r****m 3
Mika m****n@m****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 49 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 8
  • Total maintainers: 1
pypi.org: syntaxmaker

The NLG tool for Finnish

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 49 Last month
Rankings
Dependent repos count: 9.0%
Dependent packages count: 10.0%
Stargazers count: 13.1%
Average: 14.9%
Forks count: 15.3%
Downloads: 27.1%
Maintainers (1)
Last synced: 4 months ago

Dependencies

setup.py pypi
  • uralicNLP >=1.2.2