"[Solved] Assigning IDs to tokens in word vector."

gamgambambamgamgambambam MemberPosts:6Contributor I
edited June 2019 inHelp
Hi,

I have this word vector:

image

http://postimg.org/image/zaahfep4v/

What i want to do is copy all the tokens from the top x-axis and align them next to their appropriate IDs.

For example, the token 'actual' (on the top x-axis) has the value of 0.366 and id of 3006. What I want is for the token 'actual' to be aligned next to its id. So in this case row 45 would go: id (3006), token (actual).

image

http://postimg.org/image/erk3d16h5/

Hope all this makes sense.

Thanks in advance for your help,
Alex

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, MemberPosts:1,869Unicorn
    Hi Alex,

    如果我理解你。柯尔ectly you want to De-Pivot the data (search Pivot on the internet to understand the operation). For an example see the process below. The regular expression in the attribute_name parameter of De-Pivot selects all attributes but text and id.

    Best regards,
    Marius





    <宏/ >







































  • gamgambambamgamgambambam MemberPosts:6Contributor I
    Thanks Marius! Worked perfectly.

    You are a champion!

    Alex
Sign InorRegisterto comment.