0

I try to find answer for my Question in Arabic Word Net synonyms in Python? but there is an error related to File "C:\Arabic Ontology paper\AWN\AWNDatabaseManagement.py", line 54 return filter(lambda(x):(x[0]==type) or (type=='all'),self._links_in) ^ SyntaxError: invalid syntax

user1926663
  • 1
  • 1
  • 1

1 Answers1

0

you should remove parentheses of x,

use "lambda x" instead of "lambda(x)"

Vicky Salunkhe
  • 9,869
  • 6
  • 42
  • 59
Hajer
  • 1