{"action":"created","issue":{"url":"https://api.github.com/repos/allenai/allennlp/issues/497","repository_url":"https://api.github.com/repos/allenai/allennlp","labels_url":"https://api.github.com/repos/allenai/allennlp/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/allenai/allennlp/issues/497/comments","events_url":"https://api.github.com/repos/allenai/allennlp/issues/497/events","html_url":"https://github.com/allenai/allennlp/pull/497","id":274270782,"number":497,"title":"Multi text field embedder","user":{"login":"DeNeutoy","id":16001974,"avatar_url":"https://avatars1.githubusercontent.com/u/16001974?v=4","gravatar_id":"","url":"https://api.github.com/users/DeNeutoy","html_url":"https://github.com/DeNeutoy","followers_url":"https://api.github.com/users/DeNeutoy/followers","following_url":"https://api.github.com/users/DeNeutoy/following{/other_user}","gists_url":"https://api.github.com/users/DeNeutoy/gists{/gist_id}","starred_url":"https://api.github.com/users/DeNeutoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeNeutoy/subscriptions","organizations_url":"https://api.github.com/users/DeNeutoy/orgs","repos_url":"https://api.github.com/users/DeNeutoy/repos","events_url":"https://api.github.com/users/DeNeutoy/events{/privacy}","received_events_url":"https://api.github.com/users/DeNeutoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T19:11:17Z","updated_at":"2017-11-15T19:28:48Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/allenai/allennlp/pulls/497","html_url":"https://github.com/allenai/allennlp/pull/497","diff_url":"https://github.com/allenai/allennlp/pull/497.diff","patch_url":"https://github.com/allenai/allennlp/pull/497.patch"},"body":"I encountered the need to embed a single token representation in two ways when playing around with the coref model to see if I can improve the performance. We could obviously replace the `BasicTokenEmbedder` with this, but it is a massively breaking change and also it's good enough for 90% of use cases, so I figured it might be better to separate this. "},"comment":{"url":"https://api.github.com/repos/allenai/allennlp/issues/comments/344701804","html_url":"https://github.com/allenai/allennlp/pull/497#issuecomment-344701804","issue_url":"https://api.github.com/repos/allenai/allennlp/issues/497","id":344701804,"user":{"login":"matt-gardner","id":3291951,"avatar_url":"https://avatars2.githubusercontent.com/u/3291951?v=4","gravatar_id":"","url":"https://api.github.com/users/matt-gardner","html_url":"https://github.com/matt-gardner","followers_url":"https://api.github.com/users/matt-gardner/followers","following_url":"https://api.github.com/users/matt-gardner/following{/other_user}","gists_url":"https://api.github.com/users/matt-gardner/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-gardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-gardner/subscriptions","organizations_url":"https://api.github.com/users/matt-gardner/orgs","repos_url":"https://api.github.com/users/matt-gardner/repos","events_url":"https://api.github.com/users/matt-gardner/events{/privacy}","received_events_url":"https://api.github.com/users/matt-gardner/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T19:28:48Z","updated_at":"2017-11-15T19:28:48Z","author_association":"MEMBER","body":"What if you just did:\r\n\r\n```json\r\n{\r\n  ...\r\n  \"token_indexers\": {\r\n    \"tokens\": {...},\r\n    \"tokens2\": {...}\r\n  },\r\n  ...\r\n  \"text_field_embedder\": {\r\n    \"tokens\": {...},\r\n    \"tokens2\": {...}\r\n  }\r\n```\r\n\r\nWould that work for your use case?"}}
{"actor":{"display_login":"matt-gardner"}}