Sentires-Guide icon indicating copy to clipboard operation
Sentires-Guide copied to clipboard

Running into the following error: Exception in thread "main" java.lang.NullPointerException

Open arnavw96 opened this issue 1 year ago • 4 comments

Hey, I was trying to run your code to generate the FOS triplets. I generated the product2json.pickle and record.per.row.txt files using python lei/0.format.py this command, but was running into the following error while running java -jar thuir-sentires.jar -t pre -c lei/1.pre

0 INFO 2023-04-10 20:12:33 Context - Use /content/drive/MyDrive/English-Jar as home directory Exception in thread "main" java.lang.NullPointerException at edu.thuir.sentires.utility.Preprocessing.preprocess(Preprocessing.java:82) at edu.thuir.sentires.utility.Preprocessing.preprocess(Preprocessing.java:44) at edu.thuir.sentires.program.Application.preprocess(Application.java:90) at edu.thuir.sentires.program.Application.main(Application.java:160)

Could you maybe help resolve this? Would appreciate any leads!

arnavw96 avatar Apr 10 '23 21:04 arnavw96

To be more specific; I'm running this on google colab as well as a windows machine

arnavw96 avatar Apr 11 '23 05:04 arnavw96

Hey, I was trying to run your code to generate the FOS triplets. I generated the product2json.pickle and record.per.row.txt files using python lei/0.format.py this command, but was running into the following error while running java -jar thuir-sentires.jar -t pre -c lei/1.pre

0 INFO 2023-04-10 20:12:33 Context - Use /content/drive/MyDrive/English-Jar as home directory Exception in thread "main" java.lang.NullPointerException at edu.thuir.sentires.utility.Preprocessing.preprocess(Preprocessing.java:82) at edu.thuir.sentires.utility.Preprocessing.preprocess(Preprocessing.java:44) at edu.thuir.sentires.program.Application.preprocess(Application.java:90) at edu.thuir.sentires.program.Application.main(Application.java:160)

Could you maybe help resolve this? Would appreciate any leads!

May I ask if your problem was finally solved? And how was it solved? Thank you!

Milin0802 avatar Jul 08 '24 06:07 Milin0802

Hi, recently someone reported the same issue to me and successfully fixed it by using the newest version.

lileipisces avatar Jul 09 '24 02:07 lileipisces

Thanks very much!

李熙_中国人民大学 @.***

---- Replied Message ---- From Lei @.> Date 07/9/2024 10:59 To @.> Cc @.> , @.> Subject Re: [lileipisces/Sentires-Guide] Running into the following error: Exception in thread "main" java.lang.NullPointerException (Issue #5)

Hi, recently someone reported the same issue to me and successfully fixed it by using the newest version. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Milin0802 avatar Jul 09 '24 08:07 Milin0802