Comments (4)
Thanks for open the specific issue, because I had lost the question. Yes, I confirm that there's currently no way to load the unpreprocessed corpus.
As mentioned before, this would require to rethink how we pre-process the corpus and the format of the pre-processed corpus. This is currently a .tsv file with no header. The first two columns are mandatory, and they contain the pre-processed text and the partition of the dataset to which the document belong. Then we may have an additional column representing the label associated with the doc.
A possibility could be to add an additional column representing the unpreprocessed text. This could be mandatory (although it's not necessary if one doesn't use CTM) or this could be optional. In case it's optional, this can create some confusion (how can we recognize that a specific column represents the unpreprocessed text, the labels, etc?), unless we provide a header to the .tsv file.
Happy to discuss if you want. Unfortunately my time to dedicate to this project has been reduced lately. So I am be slow to respond. However I think OCTIS can be useful for the community and I'm trying to keep it alive :)
from octis.
Thanks Roberta! :)
yes, that is correct.
My suggestion is to first try hyperparameter configurations that "usually" work well. You can find some reference values in these papers:
- https://aclanthology.org/2021.acl-short.96/
- https://aclanthology.org/2021.ranlp-1.157/
- https://arxiv.org/pdf/2202.07631.pdf
Moreover, make sure you select an appropriate pre-trained model for generating the contextualized representations of the documents. In this paper we noticed that this has an impact on the results. And also the pre-processing is quite important. It seems CTM works better with smaller vocabularies.
Hope it helps :)
Silvia
from octis.
following up on this cause I stumbled on the same issue (I think) and want to double-check I understand correctly.
I need to do hyperparameter optimization + model comparison for multiple CTMs, and I want to pass unpreprocessed text to the transformer part of the pipeline, while passing processed text to the neural topic model.
It seems like at the moment this is not supported here, I have to stick to manually trying different HP combinations and computing metrics through https://github.com/MilaNLProc/contextualized-topic-models, correct?
Amazing work, by the way 🙏
from octis.
thanks for the super quick reply and the pointers! :)
from octis.
Related Issues (20)
- Docker image failed with OCTIS in requirement HOT 7
- problems partitioning custom dataset
- Dependency incompatibility HOT 2
- AttributeError: module 'numpy' has no attribute 'int'. HOT 1
- Input contains NaN, infinity or a value too large for ('float64') HOT 2
- Cannot install OCTIS HOT 4
- Attribute Error HOT 1
- OCTIS install error
- cy
- OCTIS install fails due to gensim version HOT 3
- Preprocessing custom dataset without removing punctuation HOT 1
- How do I handle this error
- Python 3.12.1 pip Installation Error HOT 3
- Can I get the original dataset?
- Error calculating coherence score for BERTopic model trained on Indic language HOT 1
- doc2bow error when running lda optimizer described in your docs HOT 1
- Specify GPU ID in OCTIS
- numpy memory error on a dataset with 4M tweets HOT 1
- Error get.vocabulary in optimizing results HOT 1
- AttributeError: 'list' object has no attribute 'lower' preprocessor.preprocess_dataset when num_processes != None HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octis.