{"id":690,"date":"2018-12-02T02:38:21","date_gmt":"2018-12-02T01:38:21","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=690"},"modified":"2020-11-21T22:22:49","modified_gmt":"2020-11-21T21:22:49","slug":"dl4j-doc2vec-sentiment-analysis-using-sentiment140","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/","title":{"rendered":"DL4J Doc2Vec &#8211; Sentiment Analysis using Sentiment140"},"content":{"rendered":"<p>I am planning to use the <a href=\"https:\/\/deeplearning4j.org\/docs\/latest\/deeplearning4j-nlp-doc2vec\">DL4J Doc2Vec <\/a>implementation for a sentiment analysis.<\/p>\n<p>However, I don&#8217;t want to start with an empty network but the staring point should be a pre-trained network: The initial trining should be done with the Sentiment140 dataset which can be found at <a href=\"https:\/\/www.kaggle.com\/kazanova\/sentiment140.\">https:\/\/www.kaggle.com\/kazanova\/sentiment140.<\/a> It contains 1,600,000 tweets extracted using the twitter api.<\/p>\n<p>In this <a href=\"https:\/\/nbviewer.jupyter.org\/gist\/pschatzmann\/beb5fb459b17dce545b9bac048e2680e\">Gist<\/a> I describe how to train and save a DL4J Doc2Vec. The serialized model is available on <a href=\"https:\/\/www.kaggle.com\/pschatzmann\/dl4j-doc2vec-sentiment140\">Kaggle<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am planning to use the DL4J Doc2Vec implementation for a sentiment analysis. However, I don&#8217;t want to start with an empty network but the staring point should be a pre-trained network: The initial trining should be done with the Sentiment140 dataset which can be found at https:\/\/www.kaggle.com\/kazanova\/sentiment140. It contains [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[4,14],"tags":[],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-data-science","category-machine-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DL4J Doc2Vec - Sentiment Analysis using Sentiment140 - Phil Schatzmann<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DL4J Doc2Vec - Sentiment Analysis using Sentiment140 - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"I am planning to use the DL4J Doc2Vec implementation for a sentiment analysis. However, I don&#8217;t want to start with an empty network but the staring point should be a pre-trained network: The initial trining should be done with the Sentiment140 dataset which can be found at https:\/\/www.kaggle.com\/kazanova\/sentiment140. It contains [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-02T01:38:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-21T21:22:49+00:00\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"DL4J Doc2Vec &#8211; Sentiment Analysis using Sentiment140\",\"datePublished\":\"2018-12-02T01:38:21+00:00\",\"dateModified\":\"2020-11-21T21:22:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/\"},\"wordCount\":95,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"articleSection\":[\"Data Science\",\"Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/\",\"name\":\"DL4J Doc2Vec - Sentiment Analysis using Sentiment140 - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"datePublished\":\"2018-12-02T01:38:21+00:00\",\"dateModified\":\"2020-11-21T21:22:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2018\\\/12\\\/02\\\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DL4J Doc2Vec &#8211; Sentiment Analysis using Sentiment140\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DL4J Doc2Vec - Sentiment Analysis using Sentiment140 - Phil Schatzmann","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/","og_locale":"en_US","og_type":"article","og_title":"DL4J Doc2Vec - Sentiment Analysis using Sentiment140 - Phil Schatzmann","og_description":"I am planning to use the DL4J Doc2Vec implementation for a sentiment analysis. However, I don&#8217;t want to start with an empty network but the staring point should be a pre-trained network: The initial trining should be done with the Sentiment140 dataset which can be found at https:\/\/www.kaggle.com\/kazanova\/sentiment140. It contains [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/","og_site_name":"Phil Schatzmann","article_published_time":"2018-12-02T01:38:21+00:00","article_modified_time":"2020-11-21T21:22:49+00:00","author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"DL4J Doc2Vec &#8211; Sentiment Analysis using Sentiment140","datePublished":"2018-12-02T01:38:21+00:00","dateModified":"2020-11-21T21:22:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/"},"wordCount":95,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"articleSection":["Data Science","Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/","url":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/","name":"DL4J Doc2Vec - Sentiment Analysis using Sentiment140 - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"datePublished":"2018-12-02T01:38:21+00:00","dateModified":"2020-11-21T21:22:49+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2018\/12\/02\/dl4j-doc2vec-sentiment-analysis-using-sentiment140\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"DL4J Doc2Vec &#8211; Sentiment Analysis using Sentiment140"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":1,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":2205,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/690\/revisions\/2205"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}