Xây Dựng Đồ Thị Tri Thức Kiểm Tra Thông Tin Về Ẩm Thực Việt Nam

Khóa luận tốt nghiệp xây dựng đồ thị tri thức với kiểm tra thông tin về ẩm thực Việt Nam, cung cấp kiến thức sâu sắc và chính xác.

Người đăng

Ẩn danh

Thể loại

thesis

2023

93
2
0

Phí lưu trữ

35 Point

Mục lục chi tiết

ACKNOWLEDGMENTS

ABSTRACT

1. CHAPTER 1: INTRODUCTION

1.1. Background and Context

1.2. Statement of the Problem

1.3. Objectives of the Study

1.4. Significance of the Study

1.5. Motivation

2. CHAPTER 2: BACKGROUND AND RELATED WORK

2.1. Resource Descriptive Framework

2.2. Multi-head Attention

2.3. Bidirectional Encoder Representations from Transformers

2.4. Pre-training and Fine-Tuning

2.5. Named Entity Recognition

2.6. The transformer architecture

2.7. Semantic textual similarity

3. CHAPTER 3: SYSTEM DESIGN

3.1. Integrate BERT-NER

3.2. Software and database design

3.3. Knowledge graph construction

3.4. Algorithm processing flow

3.5. System response processing

3.6. Fact-checking through semantic similarity

4. CHAPTER 4: SYSTEM IMPLEMENTATION

4.1. User query processing

4.2. Neo4j query processing

4.3. Answer results processing

4.4. Experiment and Discussion

5. CHAPTER 5: CONCLUSION & FUTURE WORK

5.1. Conclusion

5.2. Future work

REFERENCES

APPENDICES

A. WEB APPLICATION INTERFACE

B. SOME EXAMPLES TYPES OF QUESTIONS TO TEST THE CHATBOT

C. STRUCTURE OF THE VIETNAMESE CUISINE KNOWLEDGE GRAPH

D. TRAIN AND USING BERT-NER

Tóm tắt

I. Tổng Quan Về Xây Dựng Đồ Thị Tri Thức Ẩm Thực Việt Nam

Đồ thị tri thức là một công cụ mạnh mẽ trong việc tổ chức và trình bày thông tin. Trong bối cảnh ẩm thực Việt Nam, việc xây dựng đồ thị tri thức giúp kết nối các món ăn, nguyên liệu và văn hóa ẩm thực một cách trực quan. Điều này không chỉ giúp người dùng dễ dàng tìm kiếm thông tin mà còn nâng cao trải nghiệm khám phá ẩm thực. Việc áp dụng công nghệ này vào ẩm thực Việt Nam mở ra nhiều cơ hội cho việc phát triển các ứng dụng thông minh.

1.1. Định Nghĩa Đồ Thị Tri Thức Trong Ẩm Thực

Đồ thị tri thức là một cấu trúc dữ liệu mô tả mối quan hệ giữa các thực thể. Trong ẩm thực, nó có thể bao gồm các món ăn, nguyên liệu và cách chế biến. Việc hiểu rõ về đồ thị tri thức giúp người dùng dễ dàng tiếp cận thông tin một cách có hệ thống.

1.2. Lợi Ích Của Đồ Thị Tri Thức Trong Khám Phá Ẩm Thực

Việc sử dụng đồ thị tri thức trong ẩm thực giúp người dùng tìm kiếm thông tin nhanh chóng và chính xác. Nó cũng tạo ra một nền tảng vững chắc cho việc phát triển các ứng dụng chatbot, giúp người dùng có thể tương tác và nhận thông tin một cách tự nhiên.

II. Vấn Đề Trong Việc Kiểm Tra Thông Tin Ẩm Thực Việt Nam

Mặc dù có nhiều nguồn thông tin về ẩm thực Việt Nam, nhưng việc xác thực thông tin vẫn là một thách thức lớn. Nhiều thông tin không chính xác hoặc thiếu cơ sở khoa học có thể gây nhầm lẫn cho người dùng. Do đó, việc phát triển một hệ thống kiểm tra thông tin là rất cần thiết để đảm bảo độ tin cậy.

2.1. Thách Thức Trong Việc Xác Thực Thông Tin

Một trong những thách thức lớn nhất là sự đa dạng và phong phú của ẩm thực Việt Nam. Nhiều món ăn có nguồn gốc và cách chế biến khác nhau tùy theo vùng miền, điều này làm cho việc xác thực thông tin trở nên phức tạp.

2.2. Tầm Quan Trọng Của Kiểm Tra Thông Tin

Kiểm tra thông tin là cần thiết để đảm bảo rằng người dùng nhận được thông tin chính xác và đáng tin cậy. Điều này không chỉ giúp nâng cao trải nghiệm người dùng mà còn bảo vệ danh tiếng của ẩm thực Việt Nam.

III. Phương Pháp Xây Dựng Đồ Thị Tri Thức Ẩm Thực Việt Nam

Để xây dựng đồ thị tri thức về ẩm thực Việt Nam, cần áp dụng các phương pháp hiện đại trong xử lý ngôn ngữ tự nhiên và khai thác dữ liệu. Việc sử dụng các mô hình như BERT và các công nghệ đồ thị sẽ giúp tối ưu hóa quá trình này.

3.1. Sử Dụng Mô Hình BERT Trong Xử Lý Ngôn Ngữ

Mô hình BERT giúp cải thiện khả năng hiểu ngữ nghĩa của các câu hỏi liên quan đến ẩm thực. Việc áp dụng mô hình này sẽ giúp chatbot trả lời chính xác hơn các câu hỏi của người dùng.

3.2. Tạo Dữ Liệu Để Xây Dựng Đồ Thị

Dữ liệu cho đồ thị tri thức được thu thập từ nhiều nguồn khác nhau như Wikipedia và các trang web ẩm thực. Việc tổ chức và chuẩn hóa dữ liệu là rất quan trọng để đảm bảo tính chính xác và đầy đủ.

IV. Ứng Dụng Thực Tiễn Của Đồ Thị Tri Thức Ẩm Thực

Đồ thị tri thức không chỉ là một công cụ lý thuyết mà còn có nhiều ứng dụng thực tiễn trong việc phát triển các ứng dụng chatbot. Những ứng dụng này có thể giúp người dùng tìm kiếm thông tin về các món ăn, nguyên liệu và cách chế biến một cách nhanh chóng và hiệu quả.

4.1. Phát Triển Ứng Dụng Chatbot Thông Minh

Chatbot sử dụng đồ thị tri thức có thể cung cấp thông tin chính xác và nhanh chóng về ẩm thực Việt Nam. Điều này giúp người dùng có trải nghiệm tốt hơn khi tìm kiếm thông tin.

4.2. Tăng Cường Trải Nghiệm Người Dùng

Việc tích hợp đồ thị tri thức vào các ứng dụng ẩm thực giúp nâng cao trải nghiệm người dùng. Người dùng có thể dễ dàng tìm kiếm và khám phá các món ăn mới một cách thú vị.

V. Kết Luận Về Tương Lai Của Đồ Thị Tri Thức Ẩm Thực Việt Nam

Tương lai của đồ thị tri thức trong ẩm thực Việt Nam rất hứa hẹn. Với sự phát triển của công nghệ, việc xây dựng và tối ưu hóa đồ thị tri thức sẽ ngày càng trở nên dễ dàng hơn. Điều này sẽ mở ra nhiều cơ hội cho việc phát triển các ứng dụng thông minh trong lĩnh vực ẩm thực.

5.1. Tiềm Năng Phát Triển Công Nghệ

Công nghệ đồ thị tri thức sẽ tiếp tục phát triển, giúp cải thiện khả năng tương tác và cung cấp thông tin chính xác hơn cho người dùng.

5.2. Hướng Đi Tương Lai Cho Ứng Dụng Ẩm Thực

Các ứng dụng ẩm thực sẽ ngày càng trở nên thông minh hơn, giúp người dùng dễ dàng tiếp cận và khám phá văn hóa ẩm thực Việt Nam một cách sâu sắc hơn.

10/07/2025

Trích đoạn nội dung tài liệu

VIETNAM NATIONAL UNIVERSITY HO CHI MINH CITY UNIVERSITY OF INFORMATION TECHNOLOGY ADVANCED PROGRAM IN INFORMATION SYSTEMS LE SY THANH — 19522230 CHE NGUYEN MINH TUNG - 19522490 CONSTRUCTING A KNOWLEDGE GRAPH WITH FACT CHECKING ABOUT VIETNAMESE CUISINE BACHELOR OF ENGINEERING IN INFORMATION SYSTEMS THESIS ADVISOR ASSOCIATE PROFESSOR DR. DO PHUC HO CHI MINH CITY, 2023 ASSESSMENT COMMITTEE The Assessment Committee is established under the Decision. by Rector of the University of Information Technology. Nguyén Dinh Thuan - Chairman.

Cao Thi Nhan - Secretary. Lê Kim Hùng - Member ACKNOWLEDGMENTS I extend my deepest gratitude to my mentor, Assoc. Đỗ Phúc, for his invaluable guidance and steadfast support throughout the fruition of my project. His consistent backing has been a beacon of clarity, and I am truly appreciative.

Special acknowledgment goes to M. Nguyén Thi Kim Phung, whose guidance and camaraderie have enriched our collaboration on this project. In the second phase of this academic journey, my interactions with Dr. Cao Thi Nhan as my consultant have been particularly enriching.

Nhan's benevolence extended beyond the scope of academia, fostering a sense of warmth and inclusion among our classmates throughout our university years. Her guidance has not only contributed to the academic aspects of my project but has also left an indelible mark on our collective experience. Moving on to the third expression of gratitude, I find it imperative to recognize the meticulous efforts of the entire Information Systems Department faculty. Their responsiveness to my inquiries demonstrated a commitment to academic excellence that went above and beyond, significantly enhancing my understanding of the subject matter.

The fourth acknowledgment extends beyond the academic sphere, encompassing the support network that has been pivotal to my journey. My gratitude extends to my family, whose unwavering support has been a pillar of strength. Friends and classmates have formed a tapestry of encouragement and camaraderie, providing a backdrop of positivity that has propelled me forward. Their collective support and love serve as a constant reminder of the interconnectedness that makes academic pursuits all the more meaningful.

TABLE OF CONTENTS cs Le ABSTRACT 1 Chapter 1 INTRODUCTION 2 1. Background and Context 2 1.2 Statement of the Problem 3 1. Objectives of the Study 4 1.4 Significance of the Study 5 15 Motivation 6 1.7 Structure of the thesis 8 Chapter2 BACKGROUND AND RELATED WORK 10 2.1 Resource Descriptive Framework 10 2.3 Bidirectional Encoder Representations from Transformers 14 2.2 Multi-head Attention 15 2.4 Pre-training and Fine-Tuning 21 2.4 Softmax, Argmax and Loss functions 22 2.3 Cross-entropy loss 23 2.5 Named Entity Recognition 24 2.1 The transformer architecture 34 2.2 Semantic textual similarity 35 Chapter3 SYSTEM DESIGN 37 3.2 Software and database design 38 3.2 Knowledge graph construction 39 3. Algorithm processing flow 43 3.1 Integrate BERT-NER 44 3.2 System response processing 47 3.

Fact-checking through semantic similarity 48 Chapter4 SYSTEM IMPLEMENTATION 53 4.2 User query processing 53 4. Neo4j query processing 55 4.4 Answer results processing 61 4.5 Experiment and Discussion 66 Chapter5 CONCLUSION & FUTURE WORK 71 5.2 Future work 72 REFERENCES 73 APPENDICES 74 Appendix A: WEB APPLICATION INTERFACE 74 Appendix B: SOME EXAMPLES TYPES OF QUESTIONS TO TEST THE CHATBOT 79 Appendix C: STRUCTURE OF THE VIETNAMESE CUISINE KNOWLEDGE GRAPH 81 Appendix D: TRAIN AND USING BERT-NER 82 LIST OF EIGURES œ2EFlx» Figure 2-1 Triple examples TẢ. 12 Figure 2-2 Example of a graph (Source: video “Introduction to Neo4j and Graph Databases”, 2019) .eceecccscesscsscceseceseceeeesecesecececseceseceaeceeeaeceaeeececseeeseceaeceeecaeeeaeeeaeeeneeaeens 13 Figure 2-3 BERT base and BERT large models (Source: web“BERT base vs BERT Large”, 2019). ee scesesseesecseesecsecsecsceeecsecesesseesecsessecsessecsaseaeeaeeseesesseesessessessessesesseaseaeeaes 15 Figure 2-4 Architecture of Transformer (Source: web “The Transformer Model”).

16 Figure 2-5 BERT input representation (Source: “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding ”, 2019).-----<cc<x 17 Figure 2-6 Encoder funCfIOTI.---- --- 5 + + 111 1v vn TT TH HH nghệ 19 Figure 2-7 Tensor điTN€TSIOTIS.- - G2 3 1921011811891 911 91 19010191 ng 20 Figure 2-8 Overall pre-training and fine-tuning procedures for BERT (Source: “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding ”, 2019) ¬. 22 Figure 2-9 NER example .-- --¿- 5E 1951193 911 91H TH HT HH 25 Figure 2-10 NER tagging example .- --- c1 11910 1991012 11 9 1 kg ng ngư, 26 Figure 2-11 Illustration of BERT for NER (Source: “BERT: Pre-trainng of Deep Bidirectional Transformers for Language Understanding ”, 20119).-- ---««++<«+ 27 Figure 2-12 Neo4j ecosystem (Source: web” Welcome to Neo4J””}.‹----«--<«+ 28 Figure 2-13 Example triple store in I€O4|],. - -- -- 5 22+ 332218323 E + EESEEEEeeesreereeserere 29 Figure 2-14 Cosine distance/Similarity (Source: Wikipedia “Cosine similarity”). 33 Figure 3-1 System architecture .-- 2 G119 19v HH Hư, 38 Figure 3-2 Data orgamization Chart.

¿5 + 3118311133383 11 83 11 811 111 g1 1v rưn 41 Figure 3-3 Pipeline of the SÿS(€T.- 5 1E 211 911 1 301 1 1v ng ng ngư43 Figure 3-4 Fact checking pIpeÌIne.-- -- --- + 1+1 kS SH ng ng ướt 49 Figure 4-1 Overview of the system processing flOW .- + cssesereserrerrske 53 Figure 4-2 Output Of Predict .- - -Ă 2 3019210118 1113910119 11 911111 11H HH ng 55 Figure 4-3 Output of final T€SUÍS.- 5 1119101121 911 11911191 ng ng ng tr 55 Figure 4-4 JSON object of Final result for †TIDÏ€.-- <5 + + +*££++EE+eeeeeeeseeereeee 56 Figure 4-5 Execution plan for a Cypher Query. -- --- 55 + 33+ EEseesrseeereerreee 58 Figure 4-6 Result from the DÏ4Tn.-- -- + E33 139111311 91 1 930 1901119 ng ngư 60 Figure 4-7 Result from Neo4j in JSON .- cà HH HH HH Hiệp 61 Figure 4-8 Extraction results of related Sentences .- - -G ng rưn 63 Figure 4-9 Word segmentation T€SUÏÍL.-- - + + + Sx 93 91191 1 1 vn ng rưệt 64 Figure 4-10 Cosine similarity T€SUÏ(.-- ó6 << + 13 E3 91 3E ngư 65 Figure 4-11 Sort by highest similarity from high to ÏOW. c5 SĂcSsSssseseseresee 66 Figure 4-12 Training Loss over EDOCs.-- 6 13 93 91193 2 HH HH ng rưệt 67 Figure 4-13 Result of precision, recall and Ï~SCOT€.-- 5 + + £++eexseexeeereees 68 Figure A-1 NER result after executed query (admin ]).--- -- «<5 s<++s£+seeeeses 74 Figure A-2 Triple result after processing the label from NER (admin Ủ]). 74 Figure A-3 Knowledge graph result from n€O(4 .-- --- -- + + + + k kg tr 75 Figure A-4 Add triple interface.

eee -- (5 + 31 HT TH HH HH 75 Figure A-5 Chatbot user ITI(CTÍAC€. G1 HH HH HH HH 76 Figure A-6 Chatbot response with image and relevant URL reference.- 77 Figure A-7 Some examples of difference QU€TV. -- 5 55 + 13+ +*vEEseeseeeeseeereeee 77 Figure A-8 Example with Vietnamese QU€FV.- --- 5 6 tk HH nh tr 78 Figure C-1 Structure of the Knowledge Graph.- - - --- - -c + t**v vn ngư, 81 LIST OF TABLES œ4EFllx» Table 2-1 RDF triples. 11 Table 2-2 Example softmmax.- G0111 HH HH ng 23 Table 2-3 Example Argmax.- - 5 - 5E 1101193019319 111901 nọ ng 23 Table 3-1 Data organization aïfAÌÏWS1S.

- «xxx vn HH HH ng nh rưệt 42 Table 3-2 List of dependency tags and NER exampÌe.-- -- --+++-s+*++x*s+seexseereees 45 Table 3-3 Our Sample Cat€ØOTIZAfIOTI.- G1 321119111910 19 10 1991119 1H ng ng ngư46 Table 206015 1. 54 LIST OF ABBREVIATIONS NLP Nature Language Processing BERT Bidirectional Encoder Representations from Transformers RDF Resource Descriptive Framework HTTP HyperText Transfer Protocol NER Named Entity Recognition ABSTRACT With today's advanced technology, the use of chatbots is growing in popularity and strength. We want to learn more about this area, conduct further research, and create our own application. Rich data gathered from the Internet was used to create a knowledge graph, which we then used to build a chatbot - a question-answering application - based on the knowledge graph.

Wikipedia content and online source pages are the main places to look for authenticity and dependability. The study presented in this thesis advances applications of knowledge representation and natural language processing. The research also addresses the challenges posed by the intrinsic depth and complexity of natural language, emphasizing the adaptability and flexibility of natural language, which makes it inherently difficult for computational analysis. The thesis aims to bridge this gap by leveraging advanced NLP approaches and innovative technologies to create a chatbot that can effectively engage users and serve as a reliable source of knowledge about Vietnamese culinary traditions.

The subject of our knowledge graph is Vietnamese cuisine in 63 provinces. In this thesis, we present the process of natural language processing of queries from users, as well as the conditions for creating answers from chatbots and using information reference sources to support fact checking. Information reference sources become integral in this endeavor, acting as pillars of support in ensuring the accuracy and credibility of the knowledge imparted by our chatbot.1 Background and Context The swift advancement of digital technology and artificial intelligence has brought about revolutionary shifts in the ways people interact with online platforms and obtain information. Chatbots have become immensely useful tools in this age of rapid technological development, changing the way users engage with one another and providing prompt answers to questions.

Artificial intelligence-powered chatbots are highly effective at mimicking human speech and are widely used to streamline communication and offer prompt support on a variety of online platforms. Furthermore, a new era of intelligent conversation agents has been ushered in by the creation of Knowledge Graphs and advanced Natural Language Processing (NLP) techniques, which have coincided with the emergence of chatbots. A knowledge graph is an advanced data structure that is used to precisely record the complex relationships between concepts and things in a given domain. Cutting-edge models and algorithms are used in advanced NLP approaches to process and understand human language with ease.

This feature greatly enhances the quality of user interactions by enabling chatbots to comprehend and react to user inquiries with increased precision and thoroughness. This thesis explores how these innovative technologies come together to create a cutting- edge web chatbot with a unique emphasis on Vietnamese food. Through the integration of chatbot capabilities with the sophisticated NLP and Knowledge Graph insights, this research aims to open up new avenues for providing a rich and dynamic user experience. The goal is to develop a chatbot that can effectively engage people and act as a reliable source of knowledge about the complex web of Vietnamese culinary traditions by investigating the intersection of various technological frontiers.2 Statement of the Problem Because of the language's intrinsic depth and complexity, texts written in natural language are by nature difficult.

The existence of ambiguity, which allows a statement to transmit wholly different meanings depending on its context, is one of the main causes of this complexity. Natural language is remarkably adaptable, as seen by its capacity to fit in with a variety of contexts with ease. But this very flexibility makes it extremely difficult for computers to understand. Since natural language is inherently flexible, it is not feasible to cover every possible use case with a strict set of rules.

Rather, the method uses algorithms created to take the meaning out of every sentence and extract the most important information. This methodology, which navigates the complex and dynamic nature of natural language and makes it accessible for computational analysis, is essential for enabling computer "comprehension" of languages. Once the core data has been extracted, and all of the extracted data is based on the topic we choose and research, all of the important and related data to the topic has been saved. We spent time gathering information from the internet, particularly Wikipedia, because it is the most trustworthy site available.

Traditional databases are intended to store structured data rather than unstructured data such as text. Because natural language tends to link things together, we decided to store data in a graph database. Our assignment is to provide a brief overview of the problem we hope to solve.

Nội dung được bảo vệ bản quyền — Tải xuống đầy đủ

Tài liệu "Xây Dựng Đồ Thị Tri Thức Kiểm Tra Thông Tin Về Ẩm Thực Việt Nam" cung cấp một cái nhìn sâu sắc về cách thức xây dựng và sử dụng đồ thị tri thức để kiểm tra thông tin liên quan đến ẩm thực Việt Nam. Tài liệu này không chỉ giúp người đọc hiểu rõ hơn về các món ăn truyền thống, mà còn hướng dẫn cách thức tổ chức và truy xuất thông tin một cách hiệu quả. Những lợi ích mà tài liệu mang lại bao gồm việc nâng cao khả năng tìm kiếm thông tin chính xác và nhanh chóng, cũng như phát triển kiến thức về văn hóa ẩm thực phong phú của Việt Nam.

Để mở rộng thêm kiến thức của bạn về các ứng dụng công nghệ trong lĩnh vực ngôn ngữ và văn bản, bạn có thể tham khảo tài liệu Luận văn thạc sĩ khoa học máy tính xây dựng và đánh giá hiệu suất chương trình phân tích cảm xúc tiếng việt kết hợp khía cạnh bằng vietnamese treebank, nơi bạn sẽ tìm thấy thông tin về phân tích cảm xúc trong ngôn ngữ Việt. Ngoài ra, tài liệu Luận văn các vấn đề xử lý tiếng việt để nâng cao hiệu năng của công cụ tìm kiếm sẽ giúp bạn hiểu rõ hơn về cách xử lý ngôn ngữ tự nhiên để cải thiện hiệu suất tìm kiếm. Cuối cùng, tài liệu Luận văn thạc sĩ tóm tắt văn bản dựa vào trích xuất câu sẽ cung cấp cho bạn cái nhìn về các phương pháp tóm tắt văn bản, một kỹ thuật quan trọng trong việc xử lý thông tin. Những tài liệu này sẽ là cơ hội tuyệt vời để bạn khám phá sâu hơn về các chủ đề liên quan.