What is the correct order of the following operations when constructing a text classification model? (1) Text cleaning; (2) Text annotation; (3) Gradient descent; (4) Model tuning; (5) Text to predictors.
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "1,2,5,3,4". Quy trình dựng bộ phân loại văn bản đi theo luồng dữ liệu: trước hết làm sạch văn bản (bỏ ký tự rác, chuẩn hoá chữ hoa thường, bỏ stop words), sau đó gán nhãn lớp cho từng văn bản để có dữ liệu huấn luyện, tiếp đến biến văn bản thành biến dự báo dạng số (bag of words, TF-IDF hoặc embedding), rồi mới huấn luyện bằng gradient descent, cuối cùng tinh chỉnh siêu tham số như tốc độ học hay mức điều chuẩn. "1,2,3,4,5" sai vì chạy gradient descent và tinh chỉnh trước khi có đặc trưng số, mà thuật toán tối ưu không làm việc trực tiếp trên chuỗi ký tự. "1,3,4,2,5" sai vì huấn luyện xong mới gán nhãn, trong khi học có giám sát cần nhãn để tính hàm mất mát. "1,3,4,5,2" sai vì để gán nhãn ở bước cuối, tức huấn luyện và tinh chỉnh mà không có nhãn lẫn đặc trưng đúng thứ tự.
Cùng phần 4
Suppose you are working on a sentiment analysis task that aims to classify a text into one of two classes: positive (pos) or negative (neg). You want to use the feature extraction with frequencies method to convert a sentence into its corresponding feature vector. Below is the table of word frequencies:
word pos neg
not 0 1
also 1 0
cat 1 1
like 1 1
dog 1 1
love 1 0
do 0 1
hate 0 1
i 2 2
Which of the following is the vector representing the sentence "i love cat i also like dog"? (Remember to add 1 as the first element in the vector, representing the bias term.)Có lời giảiCâu hỏiWhich of the following models can be estimated by maximum likelihood estimator?Có lời giảiCâu hỏiWhat is the right order for a text classification model components?
1. Text cleaning
2. Text annotation
3. Gradient descent
4. Model tuning
5. Text to predictorsCó lời giảiCâu hỏiCả 15 câu của chủ đề15 câu