translate / amagama

Web service for implementing a large-scale translation memory
http://amagama.translatehouse.org
GNU General Public License v3.0
90 stars 27 forks source link

Incorrect quality information via API #3208

Closed mathjazz closed 8 years ago

mathjazz commented 8 years ago

Quality information returned from the following API request seems wrong: https://amagama-live.translatehouse.org/api/v1/en/sl/unit/Change/

[{
    "quality": 85.71428571428572,
    "rank": 100.0,
    "source": "Change",
    "target": "Spremeni"
}, {
    "quality": 85.71428571428572,
    "rank": 100.0,
    "source": "Change",
    "target": "Sprememba"
}]

It should be 100, like on https://amagama-live.translatehouse.org/.

unho commented 8 years ago

It is curious, https://amagama-live.translatehouse.org/api/v1/en/sl/unit/?source=Change and https://amagama-live.translatehouse.org/api/v1/en/sl/unit/Change/ do return different results.

unho commented 8 years ago

@mathjazz Closing this as a non issue since you are using:

https://amagama-live.translatehouse.org/api/v1/en/sl/unit/Change/

instead of the correct:

https://amagama-live.translatehouse.org/api/v1/en/sl/unit/Change

You can see that https://amagama-live.translatehouse.org/ returns the same results if you search by "Change/" instead of "Change". Or if you use https://amagama-live.translatehouse.org/api/v1/en/sl/unit/?source=Change/