我正在使用Huggingface的预先训练好的Pegasus模型获取Inshort数据集的摘要。PegasusForConditionalGeneration, PegasusTokenizer
model = PegasusForConditionalGeneration.from_pretrained("google/pegasus-xsum&quo
提取了帕伽索斯源代码后,我用以下设置设置了我的环境:
调用"C:\Program (X86)\MicrosoftVisualStudio12.0\VC\vcvars32.bat“,设置pegasus=D:/Dev/peapasus-2.14.1/ PEGASUS_HOME=%PEGASUS_ROOT% set PEGASUS_PLATFORM=WIN32_IX86_MSVC set path=%path%;%PEGASUS_HOME%\bin set OpenSSL