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

No output when running java -jar thuir-sentires.jar -t lexicon -c lei/4.lexicon.linux

Open Hlal opened this issue 1 year ago • 1 comments

It seems the task was successfully excuted but the lexicon.txt file was empty. And the elements of output reviews.pickle only have four keys, which was user, item, rating and text. There's no key named sentence which should have structure like feature|opinion.

0 INFO 2023-11-30 13:12:12 Application - Building sentiment resources with specified task of lei/4.lexicon.linux 0 INFO 2023-11-30 13:12:12 Application - Loading configurations... 22 INFO 2023-11-30 13:12:12 Context - Use projects/Sentires/English/English-Jar as home directory 45 INFO 2023-11-30 13:12:12 Application - Loading configuration done. 46 INFO 2023-11-30 13:12:12 Application - Initializing the builder... 421 INFO 2023-11-30 13:12:12 Application - Initialization done. 421 INFO 2023-11-30 13:12:12 Application - Reading corpus from lei/intermediate/validate.txt ... 6151 INFO 2023-11-30 13:12:18 Application - Reading done. 6151 INFO 2023-11-30 13:12:18 Application - Building sentiment resource... 6151 INFO 2023-11-30 13:12:18 SentiresBuilder - Extracting feature phrases... 6151 INFO 2023-11-30 13:12:18 FeatureExtractor - Preparing utilities for extraction... 10111 INFO 2023-11-30 13:12:22 FeatureCandidateTool - Verbal stop-word list generated. 10112 INFO 2023-11-30 13:12:22 FeatureExtractor - Preparation done. 10112 INFO 2023-11-30 13:12:22 FeatureExtractor - Extracting candidate feature phrases... 15050 INFO 2023-11-30 13:12:27 FeatureExtractor - Extraction done. 15050 INFO 2023-11-30 13:12:27 FeatureExtractor - Extracting OOV feature phrases. 26431 INFO 2023-11-30 13:12:38 FeatureExtractor - Extraction done. 26431 INFO 2023-11-30 13:12:38 FeatureExtractor - Pruning from candidate set... 27029 INFO 2023-11-30 13:12:39 FeatureExtractor - Pruning done. 27029 INFO 2023-11-30 13:12:39 FeatureExtractor - Reading manually defined features... 27185 INFO 2023-11-30 13:12:39 FeatureExtractor - Reading manually defined features done. 27185 INFO 2023-11-30 13:12:39 FeatureExtractor - Remove the stop features... 27238 INFO 2023-11-30 13:12:39 FeatureExtractor - Remove the stop features done. 27238 INFO 2023-11-30 13:12:39 FeatureExtractor - Post-processing... 27485 INFO 2023-11-30 13:12:39 FeatureExtractor - Post-processing done. 27485 INFO 2023-11-30 13:12:39 FeatureExtractor - Calculating entropy... 31009 INFO 2023-11-30 13:12:43 FeatureExtractor - Calculating entropy done. 31009 INFO 2023-11-30 13:12:43 FeatureExtractor - Exporting extracted feature words to debug.feature... 31016 INFO 2023-11-30 13:12:43 FeatureExtractor - Exporting feaure words to debug.feature done. 31275 INFO 2023-11-30 13:12:43 SentiresBuilder - Extraction done. 31275 INFO 2023-11-30 13:12:43 SentiresBuilder - Extracting opinion phrases... 31275 INFO 2023-11-30 13:12:43 OpinionExtractor - Extracting adjacent adjective words as opinion phrases... 31821 INFO 2023-11-30 13:12:44 OpinionExtractor - Extraction done. 31821 INFO 2023-11-30 13:12:44 OpinionExtractor - Building adv-like and func-like phrases... 37518 INFO 2023-11-30 13:12:49 OpinionExtractor - Build done. 37518 INFO 2023-11-30 13:12:49 OpinionExtractor - Extracting OOV opinion phrases by staticstic method... 42146 INFO 2023-11-30 13:12:54 OpinionExtractor - Extraction done. 42146 INFO 2023-11-30 13:12:54 OpinionExtractor - Exporting extracted opinion words to debug.opinion... 42231 INFO 2023-11-30 13:12:54 OpinionExtractor - Extraction done. 42231 INFO 2023-11-30 13:12:54 SentiresBuilder - Extration done. 42231 INFO 2023-11-30 13:12:54 SentiresBuilder - Classifying polarity of feature-opinion pairs... 42231 INFO 2023-11-30 13:12:54 PolarityClassifier - Initialing all feature-opinion pairs... 42252 INFO 2023-11-30 13:12:54 PolarityClassifier - Initialization done. classified 0 pairs. 42252 INFO 2023-11-30 13:12:54 PolarityClassifier - Iteration 1 starts... 42454 INFO 2023-11-30 13:12:54 PolarityClassifier - Iteration 1 ends, classified 0 pairs. 42508 INFO 2023-11-30 13:12:54 SentiresBuilder - Classification done. 42517 INFO 2023-11-30 13:12:54 Sentires - total entries : 25421, total pairs : 25421 42517 INFO 2023-11-30 13:12:54 Sentires - total features : 2258 WITH 2258 have opinions and 0 have no opinions 42517 INFO 2023-11-30 13:12:54 Sentires - total opinions : 3545 WITH pos : 0, neg : 0, neu : 0 42517 INFO 2023-11-30 13:12:54 Application - Building done. 42517 INFO 2023-11-30 13:12:54 Application - Exporting results to lei/intermediate/lexicon.txt... 42672 INFO 2023-11-30 13:12:54 Application - Exporting done.

Hlal avatar Nov 30 '23 21:11 Hlal

It does not seem to be finished. Please strictly follow the instructions given in the repo. By doing so, many people have successfully processed their own data.

lileipisces avatar Dec 01 '23 02:12 lileipisces