主权项 |
1. A method for context-based natural language processing, comprising:
maintaining, by a server comprising at least one processor and a memory storing processor-executable codes, a plurality of dialog system rules; receiving, by the server, a user request from a Dialog System Interface; receiving, by the server, one or more attributes associated with the user request from the Dialog System Interface or a user device; identifying, by the server, a type of context associated with at least a portion of the user request based on the user request and the one or more attributes; assigning, by the server, a context label to the user request associated with the type of context; selecting, by the server, from the plurality of dialog system rules, a dialog system rule which is associated with the context label and the user request; and generating, by the server, a response to the user request by applying the dialog system rule to at least a part of the user request. |