Problem of set role operator

mailshubhodip
mailshubhodip New Altair Community Member
edited November 2024 in Community Q&A

set role operator.pngwant to add sentiment as an attribute name,but it shows attribute sentiment is not specified,how to add sentiment in attribute name

Tagged:

Answers

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    Ok a few things. First, this thread is a dupilcate of another one you started. I will delete that one.

     

    Regarding the sentiment value. If your sentiment value comes from the Read Excel operator (i.e. is in a column in your spreadsheet), you have to use a set role before the Process Documents operator, or else it gets chopped up in the tokenization. 

     

    Also, make sure the text field you're trying to process is set to the Text data format. You can do that in the Read Excel during import or just use a Nominal to Text operator before the Process Documents operator.