Mixed-initiative planning (MIP) is one approach to integrate or involve user through dialog management in the planning process, that is, in solving a user problem. Planning is the process of finding a sequence of actions that will achieve the goal given the initial state. PDDL (Planning Domain Definition Language) or its variant is used to describe the problem. Once the problem is fully describe in PDDL, we now know the four things about the problem: the initial state, the action that can be taken in any state, the result of taking such action and the goal state. Planning graph is a special data structure that represent those four things.
We are using the method where we have a list of positive words and a list of negative words. We use these words to calculate a sentiment score based on whether the sentence contains more of positive or negative words. The code is in R. List of positive and negative words positive_words <- c('abounded', 'contentment','exceed') negative_words <- c('abolish', 'baseless','caustic') sentence <- c("manufacturing is abounded in St. Louis and exceed the expectation though it abolished traditional industries", "Acme has to deal with baseless and caustic arguments") Normally, we should be reading these sentence from some file, but here we are creating a sample text to show the process categorizing text based on the sentimental score. Convert the sentence into a list of words using str_split function. word_list = str_split(sentence, '\\s+') words = unlist(word_list) The object 'words' ...
Comments
Post a Comment