Huggingface dönüştürücüler ile metinden SQL'e çeviri örneği
Bu makalede, Manuel Romero'nun ayrıntılı not defterini küçük değişikliklerle yakından takip ediyorum , örneğin T5 küçük modeli T5 temel modelle değiştirmek (böylece eğitilebilir parametre sayısını 60M'den yaklaşık 223M'ye çıkarmak ). Analizin tüm ayrıntıları bu halka açık Kaggle not defterinde bulunabilir .
5 dönem boyunca yapılan eğitimin bir sonucu olarak ( Kaggle kullanıcıları için yaklaşık 2 saatlik NVIDIA TESLA P100 GPU kullanımı ), karşılık gelen ROUGE2 Fscore yaklaşık 0,7904 veya ilk dizüstü bilgisayarda elde edilenden yüzde 2,86 daha yüksektir :

Eğitilen model tarafından gerçekleştirilen metinden SQL'e çevirinin tahmin edilen örneklerinden bazıları, beklenen SQL sorgularıyla birlikte:
translate to SQL: What is terrence ross' nationality
Predicted: SELECT Nationality FROM table WHERE Player = Terrence Ross
Expected: SELECT Nationality FROM table WHERE Player = Terrence Ross
translate to SQL: how many schools or teams had jalen rose
Predicted: SELECT COUNT School/Club Team FROM table WHERE Player = Jalen Rose
Expected: SELECT COUNT School/Club Team FROM table WHERE Player = Jalen Rose
translate to SQL: What was the date of the race in Misano?
Predicted: SELECT Date FROM table WHERE Location = misano
Expected: SELECT Date FROM table WHERE Circuit = Misano
translate to SQL: How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?
Predicted: SELECT COUNT College/junior/club team FROM table WHERE NHL Team = Washington Capitals
Expected: SELECT COUNT College/junior/club team FROM table WHERE NHL team = Washington Capitals
translate to SQL: What is the nationality of the player from Vancouver Canucks?
Predicted: SELECT Nationality FROM table WHERE NHL team = Vancouver Canucks
Expected: SELECT Nationality FROM table WHERE NHL team = Vancouver Canucks
translate to SQL: List the # for ships commissioned on december 18, 1965.
Predicted: SELECT # FROM table WHERE Commissioned = December 18, 1965
Expected: SELECT # FROM table WHERE Commissioned = December 18, 1965
translate to SQL: What could a spanish coronel be addressed as in the commonwealth military?
Predicted: SELECT Address FROM table WHERE Country = commonwealth military AND Language = spanish coronel
Expected: SELECT Commonwealth equivalent FROM table WHERE Rank in Spanish = Coronel
translate to SQL: If you're a major general in the US air force then what ranking will you receive in the commonwealth's air force?
Predicted: SELECT Air Force Ranking FROM table WHERE Major General = US Air Force
Expected: SELECT Commonwealth equivalent FROM table WHERE US Air Force equivalent = Major General
Umarım bu sonuçlar sizin için yararlı olabilir. Sorularınız/yorumlarınız varsa, aşağıdaki yorumlara yazmaktan veya bana doğrudan LinkedIn veya Twitter üzerinden ulaşmaktan çekinmeyin .
Ayrıca yeni yazılarıma abone olabilir veya referans Medium üyesi olabilirsiniz .