HKUST-KnowComp / FolkScope

Codes and Datasets for the ACL2023 Findings Paper: FolkScope: Intention Knowledge Graph Construction for Discovering E-commerce Commonsense
MIT License
30 stars 5 forks source link

No rel-freq.txt saved after running pattern_miner.py #8

Open stayones opened 1 year ago

stayones commented 1 year ago
  1. Data file used: _clothingpopulated.csv
  2. Package difference: StandfordCoreNLP-4.5.4
  3. Script running: bash scripts/run_mining.sh

Hi I encountered the error:

Traceback (most recent call last): File "../FolkScope/src/pattern/pattern_merge.py", line 28, in <module> for pattern, cnt in zip( ValueError: not enough values to unpack (expected 2, got 1)

After looking at it, I think this issue is caused because for the relation that have some patterns mined, the rel-freq.txt files are empty. And it's always: 0 patterns after removing redundancies image

ccclyu commented 1 year ago

@seanliu96 Can you help with this question~

seanliu96 commented 1 year ago

Please try to change the corenlp version to the provided one (v 4.4.0) again because we do not test the latest version.

stayones commented 1 year ago

Hi I have changed the corenlp version to v 4.4.0. But still no frequencies saved. Also when I'm running the run_mining.sh, I have encountered an error about

pattern_miner.py: error: unrecognized arguments: --processed_file_name

After I checked the pattern_miner.py, I changed in the bash script from --processed_file_name this to the --processed_file_dir I hope this result is not coming from this change.