cominsys / frake Goto Github PK
View Code? Open in Web Editor NEWFRAKE: Fusional Real-time Automatic Keyword Extraction
License: GNU General Public License v3.0
FRAKE: Fusional Real-time Automatic Keyword Extraction
License: GNU General Public License v3.0
Hi cominsys, what's the license on your code & model?
Hi Team,
I have recently started using FRAKE for keyword extraction. I was wondering if you provide the documentation for the community? Thanks and Take care.
I tried to use the library according to the provided example as follows:
extractor = FRAKE.KeywordExtractor(lang='en', hu_hiper=0.4,Number_of_keywords=10)
print(extractor.extract_keywords("Depp could be back for more Pirates"))
However, this generated the following error:
C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py:1266: RuntimeWarning: k >= N - 1 for N * N square matrix. Attempting to use scipy.linalg.eig instead.
warnings.warn("k >= N - 1 for N * N square matrix. "
Traceback (most recent call last):
File "c:\Users\user\Desktop\Keyword Extraction\evaluation.py", line 407, in <module>
print(extractor.extract_keywords("Depp could be back for more Pirates"))
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\FRAKE\FRAKE.py", line 468, in extract_keywords
z = self.__score(token,data_snt)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\FRAKE\FRAKE.py", line 427, in __score
c = self.__MCI_Centrality(text)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\FRAKE\FRAKE.py", line 375, in __MCI_Centrality
df = pd.DataFrame({'Word' :list(self.__scores(G)[0].keys()),
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\FRAKE\FRAKE.py", line 357, in __scores
ei = nx.eigenvector_centrality_numpy(g)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\networkx\algorithms\centrality\eigenvector.py", line 225, in eigenvector_centrality_numpy
eigenvalue, eigenvector = sp.sparse.linalg.eigs(
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py", line 1271, in eigs
raise TypeError("Cannot use scipy.linalg.eig for sparse A with "
TypeError: Cannot use scipy.linalg.eig for sparse A with k >= N - 1. Use scipy.linalg.eig(A.toarray()) or reduce k.
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.