bert movie reviews sentiment classifier
1.0.0
قم ببناء مصنف المراجعات المراجعات مع نموذج لغة بيرت من Google
هذا مثال على إنشاء مصنف مع مراجعة الأفلام مع تمثيلات تشفير Bert (BERT) من Google من GOOGLE BERT من طراز NLP.
يتطلب هذا الرمز scikit-learn و tensorflow-gpu و tensorflow-hub و bert-tensorflow . يتوافق الرمز مع TF <= 1.1.50 وأحدث نموذج BERT المتاح على مركز TensorFlow. لاستخدام إصدار وحدة المعالجة المركزية ، يرجى تثبيت tensorflow==1.15.0 .
pip install scikit-learn
pip install tensorflow-gpu==1.15.0
pip install tensorflow-hub
pip install bert-tensorflowلتشغيل هذا المشروع يمكنك
افتح دفتر Ipython Notebook src/bert_sentiment_classifier-local.ipynb في دفتر Juypter الخاص بك أو
استيراد src/bert_sentiment_classifier.ipynb في كولاب من Google مع خلفية GPU.
افتح Pyhon Interactive src/bert_sentiment_classifier.py في رمز VisualStudio. انظر هنا كيف يعمل مع دفاتر Jupyter و Code.