Skip to Content
0
May 26, 2020 at 03:39 PM

bulk_create do not enable same synonyms in multiple languages

67 Views

Dear,

it seems that bulk_create filter out existing synonyms independently of the language,

see the code snippet

apiurl=https://api.cai.tools.sap/train/v2/users/$USER_SLUG/bots/$BOT_SLUG/versions/$VERSION_SLUG/dataset/gazettes/$GAZETTE_SLUG/synonyms/bulk_create'

# ... some code
 
GAZETTE_SLUG='city' # to enable finer grain cities for a geographical area 
syns=['London','Edinburgh'] 
r=loadSynonyms(syns,'en') #OK 2 synonyms in my city entity (en)
syns=['Londre','Édimbourg','Paris'] 
r=loadSynonyms(syns,'fr') #OK 3 synonyms in my city entity (fr)
syns=['Londra','Edimburgo','Roma'] 
r=loadSynonyms(syns,'it') #OK 3 synonyms in my city entity (it)
syns=['London', 'Edimburgo','Madrid' ] 

r=loadSynonyms(syns,'es') #####KO#### 1 synonym only in my city entity (en) London seems to be filtered out due to en Edimburgo due to it

Did I miss something ?

jc