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

Summary distance between languages #1142

Open
vmonakhov opened this issue Oct 4, 2024 · 1 comment
Open

Summary distance between languages #1142

vmonakhov opened this issue Oct 4, 2024 · 1 comment
Assignees
Labels
backend bug is related to backend enhancement this label means that resolving the issue would improve some part of the system

Comments

@vmonakhov
Copy link

vmonakhov commented Oct 4, 2024

This task is to get summary table and diagrams with distances between languages from cognate, glottochronology and morphology analyses.

Result relation value in cognate analysis is not a part or percents, it is a scalar. To get required relation you have to use the following formula:
relation = round(1 - int(diff) / max_diff, 2)
where diff is that result scalar value and max_diff == 500

Any result of the analyses shows distances between perspectives. In the new tool we want distances between languages, so we have to merge results for every language by perspectives within every single result. Then we merge results for languages pairs between all the input analyses results.

@vmonakhov vmonakhov added enhancement this label means that resolving the issue would improve some part of the system backend bug is related to backend labels Oct 4, 2024
@vmonakhov vmonakhov self-assigned this Oct 4, 2024
vmonakhov added a commit to ispras/lingvodoc that referenced this issue Oct 4, 2024
* json result

* store cognate analysis

* getting language id

* getting language_id

* fixes

* next steps

* result computation

* get balanced matrix

* refactoring

* export html

* fixed json serialization

* init frontend

* enhanced frontend

* debugging

* first result

* beauty

* fixed min and max distances
vmonakhov added a commit that referenced this issue Oct 4, 2024
* json result

* fixe and refactoring

* getting language id

* getting language_id

* next steps

* export html

* init frontend

* enhanced frontend

* debugging

* beauty
vmonakhov added a commit that referenced this issue Oct 7, 2024
* open common modal

* +

* new frontend

* clean result

---------

Co-authored-by: Ivan Beloborodov <[email protected]>
vmonakhov added a commit to ispras/lingvodoc that referenced this issue Oct 8, 2024
@vmonakhov
Copy link
Author

vmonakhov commented Oct 8, 2024

The task is resolved. All the cases described above were taken into account.
Every of the three analyses gives result json file, you should collect them on local machine.

2024-10-08_15-48-58

Then go to /tools and click 'Get composite distance between languages'

2024-10-08_13-26-22

Choose the result files received above (any amount) and press 'Compute'

2024-10-08_13-28-35

You'll get a table and diagrams showing the summary distances. The list under the table shows languages and perspectives names from the summary result.

2024-10-08_13-25-34

If there is no result for some languages pairs, you'll get 'n/a' for them

2024-10-08_11-50-42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug is related to backend enhancement this label means that resolving the issue would improve some part of the system
Projects
None yet
Development

No branches or pull requests

1 participant