GithubHelp home page GithubHelp logo

cominsys / frake Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 7.0 40 KB

FRAKE: Fusional Real-time Automatic Keyword Extraction

License: GNU General Public License v3.0

Python 91.05% Jupyter Notebook 8.95%

frake's People

Contributors

cominsys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

frake's Issues

Documentation of FRAKE

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.

```sp.sparse.linalg.eigs``` throws ```TypeError```

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.