{"id":60731,"date":"2020-09-25T09:28:21","date_gmt":"2020-09-25T13:28:21","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=60731"},"modified":"2022-11-21T09:46:22","modified_gmt":"2022-11-21T14:46:22","slug":"bag-of-words-approach-python-code-limitations-part-iii","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/","title":{"rendered":"Bag of Words: Approach, Python Code, Limitations \u2013 Part III"},"content":{"rendered":"\n<p><em>Check out <a href=\"\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations\/\">Part I<\/a>  of this series to get started with sentiment analysis. Review <a href=\"\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-ii\/\">Part II<\/a> and learn how to remove Stop Words, and use Stemming and Lemmatization<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bag of Words vs Word2Vec<\/h2>\n\n\n\n<p>Even after incorporating the mentioned techniques, it is difficult to limit the growing dimension of vectors while dealing with a large number of documents. One can indeed limit the vocabulary by limiting it to include only the most frequent words, but this results in suboptimal performance.<\/p>\n\n\n\n<p>Word embedding models like Word2Vec results in distributed representations that take semantics into account such that words with similar meanings are present close to each other in vector space. Word2vec also limits the dimension of generated vectors. This makes Word2Vec a preferred choice for creating a vectorized representation of words.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advantages of Bag of Words<\/h2>\n\n\n\n<p>Bag of Words is still widely used owing to its simplicity. NLP researchers usually create their first model using Bag of Words to get an idea of the performance of their work before proceeding to better word embeddings.<\/p>\n\n\n\n<p>It is particularly helpful when we are working on a few documents and they are very domain-specific. For example: Working on Political&nbsp;<a href=\"https:\/\/quantra.quantinsti.com\/glossary\/Machine-Readable-News\" target=\"_blank\" rel=\"noreferrer noopener\">News Data<\/a>&nbsp;from twitter to measure sentiment. Word2Vec is a pre-trained model and thus may not have word embeddings related to niche domains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>With the help of word embedding models, one can create an end-to-end&nbsp;<a href=\"https:\/\/quantra.quantinsti.com\/glossary\/Algorithmic-trading\" target=\"_blank\" rel=\"noreferrer noopener\">algorithmic trading<\/a>&nbsp;pipeline for processing and leveraging alternate text data to predict potential price movements. You have seen how Bag of Words can be used to create vectorized representation. You can learn about more sophisticated techniques like Word2Vec and BERT to build sentiment analysis models in the course&nbsp;<a href=\"https:\/\/quantra.quantinsti.com\/course\/natural-language-processing-trading\" target=\"_blank\" rel=\"noreferrer noopener\">Natural Language Processing in Trading<\/a>.<\/p>\n\n\n\n<p><em>Disclaimer: All data and information provided in this article are for informational purposes only. QuantInsti\u00ae makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information in this article and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.<\/em><\/p>\n\n\n\n<p>To download the complete Python code, visit QuantInsti:&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/bag-of-words\/\">https:\/\/blog.quantinsti.com\/bag-of-words\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.<\/p>\n","protected":false},"author":431,"featured_media":44932,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,350,341,344],"tags":[851,8224,8229,8377,806,4582,8376,852,2859,2860,1224,595,4412,1038,7648,7649,8375,8374,8228,8226,8225,8227],"contributors-categories":[13654],"class_list":{"0":"post-60731","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"category-quant-asia-pacific","12":"category-quant-development","13":"category-quant-regions","14":"tag-algo-trading","15":"tag-bag-of-words","16":"tag-corpus","17":"tag-countvectorizer","18":"tag-data-science","19":"tag-dataframe","20":"tag-lemmatization","21":"tag-machine-learning","22":"tag-natural-language-processing","23":"tag-nlp","24":"tag-pandas","25":"tag-python","26":"tag-scikit-learn","27":"tag-sentiment-analysis","28":"tag-sentiment-data","29":"tag-sentiment-trading","30":"tag-stemming","31":"tag-stemming-and-lemmatization","32":"tag-tokenization","33":"tag-vectorized-text-data","34":"tag-word-cloud","35":"tag-word2vec","36":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Bag of Words: Approach, Python Code, Limitations \u2013 Part III<\/title>\n<meta name=\"description\" content=\"QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.\" \/>\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.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/60731\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bag of Words: Approach, Python Code, Limitations \u2013 Part III | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-25T13:28:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:46:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Naman Swarnkar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naman Swarnkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Naman Swarnkar\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/0711c8311f398d8eb95dd6f0eef86b50\"\n\t            },\n\t            \"headline\": \"Bag of Words: Approach, Python Code, Limitations \u2013 Part III\",\n\t            \"datePublished\": \"2020-09-25T13:28:21+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:46:22+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/\"\n\t            },\n\t            \"wordCount\": 383,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"keywords\": [\n\t                \"Algo Trading\",\n\t                \"Bag of Words\",\n\t                \"Corpus\",\n\t                \"CountVectorizer\",\n\t                \"Data Science\",\n\t                \"Dataframe\",\n\t                \"Lemmatization\",\n\t                \"Machine Learning\",\n\t                \"Natural Language Processing\",\n\t                \"NLP\",\n\t                \"Pandas\",\n\t                \"Python\",\n\t                \"Scikit-learn\",\n\t                \"Sentiment Analysis\",\n\t                \"Sentiment Data\",\n\t                \"Sentiment Trading\",\n\t                \"Stemming\",\n\t                \"Stemming and Lemmatization\",\n\t                \"Tokenization\",\n\t                \"Vectorized Text Data\",\n\t                \"Word Cloud\",\n\t                \"Word2Vec\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/\",\n\t            \"name\": \"Bag of Words: Approach, Python Code, Limitations \u2013 Part III | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"datePublished\": \"2020-09-25T13:28:21+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:46:22+00:00\",\n\t            \"description\": \"QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/bag-of-words-approach-python-code-limitations-part-iii\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/python-mag-glass.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Python\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/0711c8311f398d8eb95dd6f0eef86b50\",\n\t            \"name\": \"Naman Swarnkar\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/namanswarnkar\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Bag of Words: Approach, Python Code, Limitations \u2013 Part III","description":"QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.","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.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/60731\/","og_locale":"en_US","og_type":"article","og_title":"Bag of Words: Approach, Python Code, Limitations \u2013 Part III | IBKR Quant Blog","og_description":"QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/","og_site_name":"IBKR Campus US","article_published_time":"2020-09-25T13:28:21+00:00","article_modified_time":"2022-11-21T14:46:22+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","type":"image\/jpeg"}],"author":"Naman Swarnkar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Naman Swarnkar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/"},"author":{"name":"Naman Swarnkar","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/0711c8311f398d8eb95dd6f0eef86b50"},"headline":"Bag of Words: Approach, Python Code, Limitations \u2013 Part III","datePublished":"2020-09-25T13:28:21+00:00","dateModified":"2022-11-21T14:46:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/"},"wordCount":383,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","keywords":["Algo Trading","Bag of Words","Corpus","CountVectorizer","Data Science","Dataframe","Lemmatization","Machine Learning","Natural Language Processing","NLP","Pandas","Python","Scikit-learn","Sentiment Analysis","Sentiment Data","Sentiment Trading","Stemming","Stemming and Lemmatization","Tokenization","Vectorized Text Data","Word Cloud","Word2Vec"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/","name":"Bag of Words: Approach, Python Code, Limitations \u2013 Part III | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","datePublished":"2020-09-25T13:28:21+00:00","dateModified":"2022-11-21T14:46:22+00:00","description":"QuantInsti showcases Word2Vec for creating a vectorized representation of words, and compares its performance to the Bag of Words approach.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/bag-of-words-approach-python-code-limitations-part-iii\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","width":900,"height":550,"caption":"Python"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/0711c8311f398d8eb95dd6f0eef86b50","name":"Naman Swarnkar","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/namanswarnkar\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-mag-glass.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/60731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/431"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=60731"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/60731\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/44932"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=60731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=60731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=60731"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=60731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}