Skip to content

Commit 6c37430

Browse files
author
Hämäläinen, Mika K
committed
2 parents 599ed85 + 6d5b39d commit 6c37430

21 files changed

+113495
-1038635
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.*~
22
*.pyc
3+
.idea/*

.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/syntaxmaker.iml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/workspace.xml

Lines changed: 0 additions & 507 deletions
This file was deleted.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2015 Mika Hämäläinen, University of Helsinki
1+
Copyright 2015-2017 Mika Hämäläinen
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
# Syntaxmaker
2-
A python NLG tool for Finnish
1+
Syntax maker
2+
=======
3+
The tool NLG tool for Finnish by [Mika Hämäläinen](https://mikakalevi.com)
34

4-
For readme, see the [Wiki](https://github.com/DiscoveryGroup/syntaxmaker/wiki)
5+
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.
6+
7+
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.](https://github.com/mikahama/syntaxmaker/wiki/Creating-a-sentence,-the-basics)
8+
9+
10+
# Requirements
11+
1. This tool requires Omorfi, you can download the correct binary version from [http://mikakalevi.com/omorfi](http://mikakalevi.com/omorfi)
12+
2. HFST `pip install hfst` for more instructions, see my post about [HFST and Python](https://mikalikes.men/using-hfst-on-python/).
13+
14+
# Installing
15+
You do `pip install syntaxmaker` to install this library.
16+
After installing it, go to [Creating a sentence, the basics](https://github.com/DiscoveryGroup/syntaxmaker/wiki/Creating-a-sentence,-the-basics) for a quick start guide.
17+
18+
# More information?
19+
20+
Just go ahead and [take a look at the wiki](https://github.com/mikahama/syntaxmaker/wiki) or my [blog post about Syntax maker](https://mikalikes.men/create-finnish-sentences-computationally-in-python-nlg/).

adposition_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
__author__ = 'mikahama'
2+
__author__ = 'Mika Hämäläinen'
33
import csv
44
import random
55
import os

0 commit comments

Comments
 (0)