linhx25 / freader Goto Github PK
View Code? Open in Web Editor NEW10-K's Textual Analysis: A Python package parsing SEC‘s 10-K fillings in all formats(html, txt)
License: MIT License
10-K's Textual Analysis: A Python package parsing SEC‘s 10-K fillings in all formats(html, txt)
License: MIT License
您好,我遇到了两个问题:
import FReader as FR #需要在同一文件夹下创建python文件
file_path = './BB_Docs_20200712_002013/20080401_RINO_10k_v109119_10k.htm'#选取文件路径
f = FR.FReader(file_path)#新建FReader对象
#选取item1 Business,所有的items都自动分类储存在_txts_dict字典里,按键值取出即可
item1 = f._txts_dict['item1']
#选取MD&A,即item 7
item7 = f._txts_dict['item7']
#计算 item 7 的 gunning fog index
fog = FR.Textstat().gunning_fog(item7)
print(fog)
#以FENG LI论文为例,分别计算FOG和Nlength两个统计量,为了方便把它放在FReader.Li()函数中
fog,length = f.li(item7)
`
报错:
AttributeError: module 'FReader' has no attribute 'FReader'
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.