Comments (4)
Working on this with @mk2510 🐐
from texthero.
Should the new tfidf function already return such a Representation Series?
Working on it, we currently implemented it so that it calculates the Representation Series correctly (using some of your code from #43 ) and then use a function representation_series_to_flat_series
to make the output the same as tfidf currently produces. Thus, when #43 will be fully implemented later on, in tfidf only one line has to be changed to get the Representation Series output. But we could also already return the Representation Series output now.
from texthero.
Working on it, we currently implemented it so that it calculates the Representation Series correctly (using some of your code from #43 ) and then use a function
representation_series_to_flat_series
to make the output the same as tfidf currently produces. Thus, when #43 will be fully implemented later on, in tfidf only one line has to be changed to get the Representation Series output. But we could also already return the Representation Series output now.
representation_series_to_flat_series
: that's sounds great! (this function will be super useful anyway for users to move from the two representation). By the way, we might want to figure out two different XSeries
names to differentiate between the two representations. (Also, for instance, pca
will still return a Pandas Series where each cell is a list, right?)
Should the new tfidf function already return such a Representation Series?
What's your opinion? We might also want to do both tasks 1 and 2 in #84 before releasing a new version. This is fine as well. In this case, we can already return the "new" Pandas Representation but this means that many tests will fail ...
... have a look at the unit tests to check for the "new" Pandas Representation under #43 (it took me a long while to implement that, it might spare you a bit of time too!)
from texthero.
We just opened a PR at #97 .
By the way, we might want to figure out two different XSeries names to differentiate between the two representations
Yes, that is very important to discuss, and probably should be handled later on in #85 2.
What's your opinion? We might also want to do both tasks 1 and 2 in #84 before releasing a new version.
I think it makes sense to still return a "old" output at the moment, so that's what we did currently. It probably makes sense to overhaul all the representation functions at the same time in #85 2. As the new tfidf already calculates with the representation series and just gives the old output, it will be easy to change.
from texthero.
Related Issues (20)
- Discussion - stopwords HOT 4
- How to retrieve TDIDF feature names HOT 1
- Question regarding application of this tool to other language documents HOT 1
- spaCy 3 support HOT 1
- here.scatterplot not working
- Can't get texthero to work with current versions of spacy and gensim HOT 1
- kmeans error: __init__() got an unexpected keyword argument 'precompute_distances' HOT 3
- [QUESTION] What is the normalization method used in `top_words()`?
- How can I remove all punctuation except for "@" HOT 2
- `remove_punctuation()` is not removing "\" HOT 2
- Deprecated arguments on kmeans function call HOT 5
- Import error HOT 2
- Import Error (YAML Loader)
- installation error: Could not build wheels for spacy, which is required to install pyproject.toml-based projects HOT 2
- Is there any function to find how the weights are calculated for each word to represent a sentence?
- TextHero Documentation link is producing a 404
- is this package being maintained? HOT 1
- Visualization of PCA on embedding space with multi-labels HOT 1
- ModuleNotFoundError: No module named 'gensim.sklearn_api' on import HOT 2
- ValueError: Cannot use a compiled regex as replacement pattern with regex=False
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 texthero.