{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/reasoning-implicit-sentiment-with-chain-of","title":"Reasoning Implicit Sentiment with Chain-of-Thought Prompting","arxiv_id":"2305.11255","date":"2023-05-18","proceeding":null,"authors":["Hao Fei","Bobo Li","Qian Liu","Lidong Bing","Fei Li","Tat-Seng Chua"],"abstract":"While sentiment analysis systems try to determine the sentiment polarities of given targets based on the key opinion expressions in input texts, in implicit sentiment analysis (ISA) the opinion cues come in an implicit and obscure manner. Thus detecting implicit sentiment requires the common-sense and multi-hop reasoning ability to infer the latent intent of opinion. Inspired by the recent chain-of-thought (CoT) idea, in this work we introduce a Three-hop Reasoning (THOR) CoT framework to mimic the human-like reasoning process for ISA. We design a three-step prompting principle for THOR to step-by-step induce the implicit aspect, opinion, and finally the sentiment polarity. Our THOR+Flan-T5 (11B) pushes the state-of-the-art (SoTA) by over 6% F1 on supervised setup. More strikingly, THOR+GPT3 (175B) boosts the SoTA by over 50% F1 on zero-shot setting. Our code is open at https://github.com/scofield7419/THOR-ISA.","url_abs":"https://arxiv.org/abs/2305.11255v4","url_pdf":"https://arxiv.org/pdf/2305.11255v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"reasoning-implicit-sentiment-with-chain-of","repo_url":"https://github.com/scofield7419/thor-isa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"reasoning-implicit-sentiment-with-chain-of","repo_url":"https://github.com/dialogue-evaluation/rusentne-evaluation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"common-sense-reasoning","task_name":"Common Sense Reasoning"},{"task_slug":"sentiment-analysis","task_name":"Sentiment Analysis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.11255","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.11255"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/scofield7419/thor-isa","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dialogue-evaluation/rusentne-evaluation","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/scofield7419/THOR-ISA","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":3,"unverified":4},"by_repo_kind":{"official":{"samples":7,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"38e86647c26e2d06","entry":"prompt_for_opinion_inferring","repo":"scofield7419/THOR-ISA","repo_kind":"official","path":"src/engine.py","file_url":"https://github.com/scofield7419/THOR-ISA/blob/HEAD/src/engine.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"38e86647c26e2d06"}},{"code_sha256_prefix":"cffe64951221d3c1","entry":"prompt_for_polarity_inferring","repo":"scofield7419/THOR-ISA","repo_kind":"official","path":"src/engine.py","file_url":"https://github.com/scofield7419/THOR-ISA/blob/HEAD/src/engine.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cffe64951221d3c1"}},{"code_sha256_prefix":"3249f510c11b7515","entry":"prompt_for_polarity_label","repo":"scofield7419/THOR-ISA","repo_kind":"official","path":"src/engine.py","file_url":"https://github.com/scofield7419/THOR-ISA/blob/HEAD/src/engine.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3249f510c11b7515"}},{"code_sha256_prefix":"121a3c9aedc08f14","entry":"ThorTrainer","repo":"scofield7419/THOR-ISA","repo_kind":"official","path":"src/engine.py","file_url":"https://github.com/scofield7419/THOR-ISA/blob/HEAD/src/engine.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"121a3c9aedc08f14"}},{"code_sha256_prefix":"78b317926b4719a9","entry":"prompt_direct_inferring","repo":"scofield7419/thor-isa","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/scofield7419/thor-isa/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78b317926b4719a9"}},{"code_sha256_prefix":"6be5538360b72e31","entry":"prompt_direct_inferring_masked","repo":"scofield7419/thor-isa","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/scofield7419/thor-isa/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6be5538360b72e31"}},{"code_sha256_prefix":"d66dde2ba36d307f","entry":"prompt_for_aspect_inferring","repo":"scofield7419/thor-isa","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/scofield7419/thor-isa/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d66dde2ba36d307f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}