Giter Site home page Giter Site logo

tafseer-nayeem / bengalisummarization Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 6.0 2.69 MB

[EACL 2021] - Unsupervised Abstractive Summarization of Bengali Text Documents.

License: MIT License

Python 61.35% HTML 0.06% Perl 38.58%
bengali-nlp bengali-summarization abstractive-summarization bengali-abstractive-summarization summarization-dataset bengali-summarization-dataset low-resource-languages

bengalisummarization's People

Contributors

tafseer-nayeem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bengalisummarization's Issues

Getting unicode error on this line nx.nx_pydot.write_dot(self.graph, dotfile) in takahe2.py

Added ".decode('utf-8')" in multiple places. Still getting error.
Networkx==1.11 is in use. Please give me some solution

This is the stacktrace

`Traceback (most recent call last):
File "D:/PhD_study/Bengali Summarization/BengaliSummarization-main/Code/AbstractiveSummarizer/abstractiveSummarizer.py", line 53, in
summary = getSummary(filenamee)
File "D:/PhD_study/Bengali Summarization/BengaliSummarization-main/Code/AbstractiveSummarizer/abstractiveSummarizer.py", line 27, in getSummary
summary_lines = wordgraph.takeinput(filename[k])
File "D:\PhD_study\Bengali Summarization\BengaliSummarization-main\Code\AbstractiveSummarizer\wordgraph.py", line 104, in takeinput
pathList = summary(sentences)
File "D:\PhD_study\Bengali Summarization\BengaliSummarization-main\Code\AbstractiveSummarizer\wordgraph.py", line 23, in summary
compresser.write_dot('test2.dot')
File "D:\PhD_study\Bengali Summarization\BengaliSummarization-main\Code\AbstractiveSummarizer\takahe2.py", line 921, in write_dot
nx.nx_pydot.write_dot(self.graph, dotfile)
File "D:\Soft_Install\anaconda3\pkgs\python-3.8.8-hdbf39b2_5\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "D:\Soft_Install\anaconda3\pkgs\python-3.8.8-hdbf39b2_5\lib\site-packages\networkx\utils\decorators.py", line 220, in _open_file
result = func(*new_args, **kwargs)
File "D:\Soft_Install\anaconda3\pkgs\python-3.8.8-hdbf39b2_5\lib\site-packages\networkx\drawing\nx_pydot.py", line 44, in write_dot
path.write(P.to_string())
File "D:\Soft_Install\anaconda3\pkgs\python-3.8.8-hdbf39b2_5\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 136-142: character maps to

Process finished with exit code 1`

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.