The word "term" returns an empty Definition for the Architecture Domain in the API

Hi - There seems to be a discrepancy between the result of the API and the web verion

Web:

API (using python, code below)

for entry in lexical_entry['entries']:
    for sense_index, sense in enumerate(entry['senses']):
       #print(sense.keys())
        domain = sense.get('domains', [])
    print('Domain ',domain)
        print('Definition ',sense.get('definitions', []), '\n')

Could it be the link in the definition (web version)

Comments

  • SimoneSimone Administrator admin

    Hi @ilivni870,
    Oh, let me find someone to help you!

  • AmosDuveenAmosDuveen Member, Administrator, Moderator admin

    Hi @ilivni870 ,

    I'm going to utter the classic line: "it's not a bug, it's a feature!"

    ...some entries, particularly abbreviations (as in this case), there is no definition content to be had. However that doesn't mean that there is no semantic content there, it just happens to not be a definition; in this case, the content is actually a cross-reference (to the word 'terminus').

    I don't think there is any other type of content that might be there in place of a definition (aside from a cross-reference) but do let me know if you find any and I'll have a dig around to see what's going on.

Sign In or Register to comment.