Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inflections give only one form #1

Closed
soshial opened this issue Mar 12, 2017 · 5 comments
Closed

Inflections give only one form #1

soshial opened this issue Mar 12, 2017 · 5 comments

Comments

@soshial
Copy link

soshial commented Mar 12, 2017

For example vēlēt might have 2 different conjugations, but only 1 is given in the result.

@lauma
Copy link
Member

lauma commented Mar 18, 2017

To get desired forms you have to pass the inflectional paradigm (given in the entries.txt) as argument for the inflection service. In case of vēlēt it is either 16 or 17. To get both tables you have to make to service calls.

When no paradigm is given, inflection service just gives one variant form lexicon (which is smaller than the whole Tezaurs) or some guess if nothing is found in lexicon. So whenever possible, do use the paradigms given.

@lauma lauma closed this as completed Mar 18, 2017
@soshial
Copy link
Author

soshial commented Mar 19, 2017

If the system is supposed to give only one answer, then why are there 2 nested lists?

[
    [
        {"Laiks":"Nepiemīt", ... }
    ]
]

@lauma
Copy link
Member

lauma commented Mar 19, 2017

@PeterisP , do you have any comments on this?

@soshial
Copy link
Author

soshial commented Mar 19, 2017

It surprises me, how taking several stems/conjugation number (already existing in the dictionary) could be more than 5 lines of code added to the API system :) I am sorry if I sound demanding, I just want to have reasonable server answers for Latvian <3

@lauma
Copy link
Member

lauma commented Mar 19, 2017

As I already said there #2 (comment), those are two differend systems. Tezaurs is tuned to be able to work with inflection service, but other direction is continuous work in progress.

Inflectional service is ment to be able to give at least some guess about forms even if one pases something completely out of vocabulary, e.g., pokemonizēt. This is kind of in contradiction with the request to give everything what is in Tēzaurs and only what is in Tēzaurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants