2 ก.ย. 2021 เวลา 01:00 • ข่าวรอบโลก
Codex ซอฟต์แวร์จาก OpenAI แปลคำสั่งภาษาอังกฤษให้เป็นโค้ดได้ทันที
OpenAI ได้เปิดตัว Codex ซอฟต์แวร์แมชชีนเลิร์นนิงใหม่ล่าสุดที่สามารถแปลคำสั่งภาษาอังกฤษให้เป็นโค้ดได้ทันที เพื่ออำนวยความสะดวกกระบวนการทำงานของโปรแกรมเมอร์ให้รวดเร็วขึ้น รวมถึงเพื่อเปิดโลกการเขียนโค้ดสำหรับมือใหม่ให้เรียนรู้และเข้าถึงได้ง่ายกว่าเดิม
ในการสาธิตของ Codex ผู้ใช้สามารถสร้างเว็บไซต์หรือเกมแบบเบสิกได้ด้วยการป้อนคำสั่งภาษาอังกฤษ เช่น “Create a webpage with a menu on the side and title at the top,” (สร้างหน้าเว็บที่มีแถบเมนูด้านข้างและมีหัวเรื่องด้านบน) จากนั้นซอฟต์แวร์ก็จะทำการแปลคำสั่งเป็นโค้ดโดยอัตโนมัติ ซึ่งแม้จะใช้เวลาเล็กน้อยและมีความผิดพลาดบ้าง แต่ก็ถือเป็นพัฒนาการที่ก้าวหน้ามาก
อย่างไรก็ตามอีกปัจจัยหนึ่งที่ยังคงต้องคำนึงถึงคือรูปแบบของคำสั่งที่ใช้ กล่าวคือ รูปแบบประโยคที่เหมาะสม หรือคำสั่งที่ชัดเจน เช่น ในระหว่างการสาธิตให้สำนักข่าวดูนั้น ทีมพัฒนาได้สั่งให้โปรแกรมแทรกภาพคนลงในหน้าเว็บ หลังจากทำการปรับขนาดและป้อนคำสั่งอื่น ๆ เพิ่มเติมแล้ว ก็เกิดปัญหาขึ้นเนื่องจากรูปภาพคนหายไปจากจอ ทีมพัฒนาจึงป้อนคำสั่งว่า “Constantly check if the person is off the page and put it back on the page if so.” (คอยตรวจสอบว่าภาพคนหายไปจากหน้าเว็บไหม ถ้าหายให้ดึงกลับมา)
ซึ่งทีมนักข่าวก็ได้ลองแนะนำให้ใช้คำสั่งว่า “Make sure the person can’t exit the page.” (คอยดูให้แน่ใจว่าภาพคนจะไม่หายออกไปจากหน้าเว็บ) แต่สำหรับคำสั่งนี้ โปรแกรมได้มีการปรับความกว้างของภาพจนดูแบนลง ซึ่งทีมก็ไม่สามารถอธิบายเหตุผลได้ แสดงให้เห็นถึงข้อควรระวังของรูปแบบคำสั่งที่อาจทำให้โปรแกรมเข้าใจผิด ซึ่งก็ยังคงไม่มีรูปแบบที่ตายตัวนัก
อย่างไรก็ตามแม้ Codex จะไม่ใช่เครื่องมือที่เปลี่ยนคนธรรมดาให้เป็นโปรแกรมเมอร์ในชั่วข้ามคืน ยังคงต้องอาศัยการเรียนรู้และลองผิดลองถูก แต่ Codex ก็เป็นโปรแกรมที่ช่วยให้โลกของคอมพิวเตอร์และการเขียนโปรแกรมเข้าถึงได้ง่ายขึ้น ด้วยการเปลี่ยนซอฟต์แวร์ให้ใช้ภาษาอังกฤษแทนที่การเขียนโค้ดได้นั่นเอง
Codex, a software from OpenAI that turns English into codes
​​OpenAI recently launched new machine learning software that can automatically translate English commands into codes. This software will speed up coding and make the coding world more accessible to the amateur.
In the demos, the user was able to build a simple website or a basic game using this tool by inputting an English command like “Create a webpage with a menu on the side and title at the top,”. The program immediately translated it into a code. This software is not error-free and may take time to operate, but it certainly is the next promising step.
Nonetheless, some issues should be concerned about - the scope of its ability and the pattern of how we form the sentence of commands. While the developers demonstrated the software to The Verge. They told Codex to add a silhouette image of a person onto the webpage. After inputting a few more commands to modify the size, the image disappeared. The developer team input the command to “Constantly check if the person is off the page and put it back on the page if so.”
Then, The Verge team suggested trying "Make sure the person can’t exit the page.”. This command also worked too but for unknown reasons, it changed the width to squash it flat on-screen. There is currently no instruction or fixed pattern on how to form the right commands that give an ideal result, which should be further developed.
Codex can't turn normal people into professional programmers overnight. We still have to learn through trials and errors. Yet, one thing Codex does best is to make the coding world more accessible by allowing us to turn English into codes right away.
บทความโดย: ทีม Sertis
โฆษณา