From f95b0f1a1380890896cf89a27d2947606c69d3c5 Mon Sep 17 00:00:00 2001 From: "aliabdelaal369@gmail.com" Date: Sat, 18 Nov 2017 22:23:26 +0200 Subject: [PATCH] Documentation update --- Named_Entity_Recognizer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Named_Entity_Recognizer.py b/Named_Entity_Recognizer.py index 7dffef2..3b95924 100644 --- a/Named_Entity_Recognizer.py +++ b/Named_Entity_Recognizer.py @@ -23,7 +23,7 @@ def __init__(self, app_id): self.__app_id = app_id # TODO :: build the options part - def GetArabicNamedEntities(self, arabic_text, options=[]): + def GetArabicNamedEntities(self, arabic_text, options=None): """ :param arabic_text: string :param options: list of strings can take values of the following: @@ -31,6 +31,8 @@ def GetArabicNamedEntities(self, arabic_text, options=[]): example : options = ['UseAllComponents'] :return: ns1:NERErrorCode, namedEntities: ns1:ArrayOfNamedEntity """ + if options is None: + options = ['UseAllComponents'] result = self.__client.service.GetArabicNamedEntities(self.__app_id, arabic_text, options) return result