Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 18, 2017
1 parent be9f5a8 commit f95b0f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Named_Entity_Recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ 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:
'UseAllComponents' , 'UseAutoCorrector', 'UseSpeller'
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

Expand Down

0 comments on commit f95b0f1

Please sign in to comment.