Comments (5)
There is the minhash algorithm which I tried to wrap in the textrank package: https://cran.r-project.org/web/packages/textrank/vignettes/textrank.html#minhash but that requires knowledge of the useR on that algorithm. If you know of another way, also feel free to let me know :).
from lexrankr.
Thanks for pointing out the issue with damping
; I will fix it.
The only step I have taken to reduce the computation (time) is to write a minimal Rcpp function to perform the similarity calc. Some parallelization could also provide some benefit here.
Another possibility would be to get creative, deviate from the methodologies laid out in lexrank/textrank, and think of a new way to get valid sentence ranks without the cumbersome pairwise comparisons. Of course, I haven't thought of a valid way, but I'd be interested in learning more about a method if there is one out there.
from lexrankr.
FYI going to rename to focus on damping issue and close this when it is fixed
from lexrankr.
Hi! Thank you for maintaining this package. This package saved me LOADS of time! I cannot thank you enough. I may have found the line in the code that is potentially the issue so I thought I might share this with you. The original is sentRank <- igraph::page_rank(sentGraph, directed = FALSE)$vector
. I think to take in the damping argument, it should be sentRank <- igraph::page_rank(sentGraph, directed = FALSE, damping = damping)$vector
. Hope it helps you =) Thanks!
from lexrankr.
Thanks for re-pinging this issue @wenyi-tay. I've committed the fix (which was exactly as you outlined) and will re-publish to CRAN assuming all tests are 👍.
If you do find any other issues and see the correct fix (as you did this time), please feel free to submit a PR. I haven't been very active with this project lately, so I'll rely on feedback/PRs from any users.
from lexrankr.
Related Issues (14)
- proxyDB error: IDFcosine already in registry HOT 1
- no sentences above threshold needs verbose error HOT 3
- rm dplyr HOT 3
- Purr HOT 10
- add helper for multiple doc lexranking (within doc)
- eval data.table
- Error in sentenceSimil HOT 4
- create doc id arg for unnest sentence function HOT 1
- `smart_stopwords` object not available unless package loaded with `library`
- Vector memory exhausted on plain text processing HOT 2
- Not able to get single top sentence HOT 1
- throw more informative error if only 1 document passed
- Test failure on i386 HOT 1
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 lexrankr.