yuzhimanhua / seetopic Goto Github PK
View Code? Open in Web Editor NEWSeed-Guided Topic Discovery with Out-of-Vocabulary Seeds (NAACL'22)
License: MIT License
Seed-Guided Topic Discovery with Out-of-Vocabulary Seeds (NAACL'22)
License: MIT License
How to get topics by documents thru this algo? I can find keywords by topics, but how to get which topic or topics belongs to which document?
(SeeTopic) PS D:\SeeTopic> sh ./seetopic.sh ===Get PLM Embeddings=== 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 55902/55902 [06:34<00:00, 141.74it/s] ===Iter 0: PLM Module=== ===Iter 1: PLM Module=== ===Iter 1: Local Module=== make: 'cate' is up to date. ./run_local.sh: line 15: ./src/cate: cannot execute binary file: Exec format error Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\get_local_nn.py", line 21, in <module> with open(f'{dataset}_{num_iter}/emb_cate_w.txt') as fin: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'scidocs_1/emb_cate_w.txt' ===Iter 1: Ensemble=== Traceback (most recent call last): File "ensemble.py", line 24, in <module> with open(f'{dataset}/keywords_{model}_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_local_2.txt' ===Iter 2: PLM Module=== Traceback (most recent call last): File "get_bert_nn.py", line 17, in <module> with open(f'{dataset}/keywords_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_2.txt' ===Iter 2: Local Module=== make: 'cate' is up to date. Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\prepare.py", line 12, in <module> with open(f'../{dataset}/keywords_{num_iter}.txt') as fin, open(f'{dataset}_{num_iter}/keywords.txt', 'w') as fout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../scidocs/keywords_2.txt' ./run_local.sh: line 15: ./src/cate: cannot execute binary file: Exec format error Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\get_local_nn.py", line 15, in <module> with open(f'../{dataset}/keywords_{num_iter}.txt') as fin: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../scidocs/keywords_2.txt' ===Iter 2: Ensemble=== Traceback (most recent call last): File "ensemble.py", line 24, in <module> with open(f'{dataset}/keywords_{model}_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_biobert_3.txt' ===Iter 3: PLM Module=== Traceback (most recent call last): File "get_bert_nn.py", line 17, in <module> with open(f'{dataset}/keywords_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_3.txt' ===Iter 3: Local Module=== make: 'cate' is up to date. Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\prepare.py", line 12, in <module> with open(f'../{dataset}/keywords_{num_iter}.txt') as fin, open(f'{dataset}_{num_iter}/keywords.txt', 'w') as fout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../scidocs/keywords_3.txt' ./run_local.sh: line 15: ./src/cate: cannot execute binary file: Exec format error Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\get_local_nn.py", line 15, in <module> with open(f'../{dataset}/keywords_{num_iter}.txt') as fin: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../scidocs/keywords_3.txt' ===Iter 3: Ensemble=== Traceback (most recent call last): File "ensemble.py", line 24, in <module> with open(f'{dataset}/keywords_{model}_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_biobert_4.txt' ===Iter 4: PLM Module=== Traceback (most recent call last): File "get_bert_nn.py", line 17, in <module> with open(f'{dataset}/keywords_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_4.txt' ===Iter 4: Local Module=== make: 'cate' is up to date. Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\prepare.py", line 12, in <module> with open(f'../{dataset}/keywords_{num_iter}.txt') as fin, open(f'{dataset}_{num_iter}/keywords.txt', 'w') as fout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../scidocs/keywords_4.txt' ./run_local.sh: line 15: ./src/cate: cannot execute binary file: Exec format error Traceback (most recent call last): File "D:\SeeTopic\seed_guided_emb\get_local_nn.py", line 15, in <module> with open(f'../{dataset}/keywords_{num_iter}.txt') as fin: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../scidocs/keywords_4.txt' ===Iter 4: Ensemble=== Traceback (most recent call last): File "ensemble.py", line 24, in <module> with open(f'{dataset}/keywords_{model}_{num_iter}.txt') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'scidocs/keywords_biobert_5.txt' cp: cannot stat 'scidocs/keywords_5.txt': No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.