This function deals with communication with the server. XML result will be parsed if the mission is word-splitting. Else the raw XML texts will be returned for further analysis.
mission: Expected result for the cloud server, may be unfinished. Optional choices are 'ws' for word-splitting, 'pos' for part-of-speech, 'ner' for named entity recognition, 'dp' for dependency parser, 'srl' for semantic role labeling, 'all' for all missions.
maxUpload: Due to the limitation of the server, we cut the input in pieces.
Examples
## Not run:# require(rLTP)# This api_key is publicly accessible.# So it is strongly recommended to register for your own key.# options(ltp_api_key='l2T9N724koSqEcDJvQHtRGVV2erajgPOgB0FAcLj')# ltp('Replace this field with a Chinese sentence.')## End(Not run)