Skip to main content

python ย่อข้อความ


เขียน python ย่อข้อความ

import gensim
from gensim.summarization import summarize

text = "ออมสิน แจ้งเปลี่ยนแปลงเวลาเปิด-ปิดให้บริการสาขา/หน่วยให้บริการ ในพื้นที่ควบคุมสูงสุดและเข้มงวด (สีแดงเข้ม) เฉพาะสาขาที่เปิดให้บริการ 5 วันต่อสัปดาห์ เป็นเวลา 09.00-15.00 น. ตั้งแต่วันที่ 1 - 14 พ.ค.นี้ รายงานข่าวจากธนาคารออมสิน แจ้งว่า ตามประกาศคณะกรรมการบริหารสถานการณ์การแพร่ระบาดของโรคติดเชื้อไวรัสโคโรนา 2019 (โควิด-19) หรือ ศบค. ชุดใหญ่ เมื่อวันที่ 29 เมษายน 2564 ได้ยกระดับมาตรการป้องกันและควบคุมโรคโควิด-19 ใน 6 จังหวัด ได้แก่ กรุงเทพมหานคร ชลบุรี เชียงใหม่ นนทบุรี ปทุมธานี และสมุทรปราการ เป็นพื้นที่ควบคุมสูงสุดและเข้มงวด (สีแดงเข้ม) เริ่มตั้งแต่วันที่ 1 พฤษภาคม 2564 เป็นต้นไป ทั้งนี้ เพื่อให้สอดคล้องและเหมาะสมกับมาตรการป้องกันและควบคุมโรคตามระดับของพื้นที่ และป้องกันการแพร่ระบาดของเชื้อไวรัส COVID-19 นั้นธนาคารออมสิน จึงขอแจ้งเปลี่ยนแปลงเวลาเปิด-ปิดสาขา/หน่วยให้บริการ ในพื้นที่ควบคุมสูงสุดและเข้มงวด (สีแดงเข้ม) ที่ให้บริการ 5 วันต่อสัปดาห์ (วันจันทร์ถึงวันศุกร์) คือ เปิดให้บริการ เวลา 09.00-15.00 น. ตั้งแต่วันที่ 1 – 14 พฤษภาคม 2564 หรือจนกว่าจะมีประกาศเปลี่ยนแปลง โดยได้มีการบริหารจัดการพนักงานที่ปฎิบัติงานที่สาขาตามความเหมาะสม สอดคล้องกับสถานการณ์ แต่ไม่ส่งผลกระทบต่อการให้บริการลูกค้าแต่อย่างใด ทั้งนี้เพื่อลดความเสี่ยงจากการแพร่ระบาดของเชื้อไวรัส COVID-19 และขออภัยในความไม่สะดวก มา ณ โอกาสนี้อย่างไรก็ตาม ลูกค้าและประชาชนทั่วไปสามารถใช้บริการผ่านช่องทางอิเล็กทรอนิกส์ หรือระบบออนไลน์ต่างๆ ของธนาคารฯ เช่น แอปพลิเคชัน MyMo และระบบ Internet Banking เป็นต้น หากต้องการข้อมูลเพิ่มเติม ติดต่อสอบถามได้ที่ ศูนย์ลูกค้าสัมพันธ์ธนาคารออมสิน โทร.1115 หรือตามสื่อประชาสัมพันธ์ของธนาคาร ได้แก่ Website : www.gsb.or.th, Facebook และ Official Line : GSB Society"

short_summary = summarize(text,ratio=0.5) #แบบกำหนด ratio(เหลือ 50%)
print(short_summary)

output
ออมสิน แจ้งเปลี่ยนแปลงเวลาเปิด-ปิดให้บริการสาขา/หน่วยให้บริการ ในพื้นที่ควบคุมสูงสุดและเข้มงวด (สีแดงเข้ม) เฉพาะสาขาที่เปิดให้บริการ 5 วันต่อสัปดาห์ เป็นเวลา 09.00-15.00 น. ตั้งแต่วันที่ 1 - 14 พ.ค.นี้ รายงานข่าวจากธนาคารออมสิน แจ้งว่า ตามประกาศคณะกรรมการบริหารสถานการณ์การแพร่ระบาดของโรคติดเชื้อไวรัสโคโรนา 2019 (โควิด-19) หรือ ศบค.

short_summary = summarize(text,word_count=10) #แบบกำหนด จำนวนคำ(นับตามจำนวนเว้นวรรค)
print(short_summary)

output
ออมสิน แจ้งเปลี่ยนแปลงเวลาเปิด-ปิดให้บริการสาขา/หน่วยให้บริการ ในพื้นที่ควบคุมสูงสุดและเข้มงวด (สีแดงเข้ม) เฉพาะสาขาที่เปิดให้บริการ 5 วันต่อสัปดาห์ เป็นเวลา 09.00-15.00 น.

*ภาษาอังกฤษจะสมบูรณ์กว่าภาษาไทย

Comments

Popular posts from this blog

FURY (2014 film)

                    Fury 2014 film is an American war film . more than $100 million dollar budgets , film based on true story during the last month of World War II in April 1945. Cast   Brad Pitt  (from World War Z and Inglourious Basterds) as Wardaddy  Shia LaBeouf (from transformer 1,2,3) as Boyd Swan Logan Lerman (from Percy Jackson 1,2) as Norman Ellison                     Fury is film in last month of World War II in April 1945. Allied forces of the United States tried to storm the city of Berlin,Germany.But faced with a tight defense and can't penetrate.it is the duty of Wardaddy(Brad Pitt ).Sergeant Major of the Army and his team 4 peoples in tank name "FURY".Mission penetrate into stronghold of Nazi.The results of their mission became a major turning point that made United States won  the war.                     Fury film is first war film this used more than 60 vehicles Tank . for The main tank is "FURY"  , stuff get per

Best Makeup tips to Korea style

               Korea Makup Style                     안녕하세요 , Now, Korea trend coming around the world. whether to be learning Korea language. or Korea fashion along to makeup style also Korea. do you have to notice!  why korean girls makeup their face very cute and clean. look like not makeup. but they focus to natural look. so how they do ? Ok let see the tip of korean girls makeup.                     BB Cream, is indispensable. many people may do not know what is BB cream. and how to use BB cream.                      BB Cream is a sunscreen cream mix makeup base and primer all in one. you can instead normal primer. excellent !, good for women who have rush all the time anyway, here's  tip of korean girls, they use one BB cream only.                     Eyeliner , Korean usually focus on the eye makeup eyeliner. so eyeliner it is a "Must Have" item indispensable. probably because they has a weakness in the eye. that relatively small and

python แปลภาษา ด้วย googletrans ใน google colab

เขียน python แปลภาษา ใน google colab