"[Solved] Assigning IDs to tokens in word vector."
gamgambambam
MemberPosts:6Contributor I
Hi,
I have this word vector:
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).
http://postimg.org/image/erk3d16h5/
Hope all this makes sense.
Thanks in advance for your help,
Alex
I have this word vector:
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).
http://postimg.org/image/erk3d16h5/
Hope all this makes sense.
Thanks in advance for your help,
Alex
Tagged:
0
Answers
如果我理解你。柯尔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
You are a champion!
Alex