Giter VIP home page Giter VIP logo

freader's People

Contributors

linhx25 avatar

Stargazers

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

Watchers

 avatar

freader's Issues

无法提取数据

您好,我遇到了两个问题:

  1. 直接调用包时出错
    `
    #!/usr/bin/env python

-- coding:utf-8 --

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'

  1. 我直接使用freader.py文件无法提取任何数据
    我所使用的文件是:https://www.sec.gov/Archives/edgar/data/0001595761/000110465920052748/wb-20191231x20f.htm
    2.1 我仔细看了一下发现几个问题,第一个是我用的20-F文件,每一小节的标题名不一样
    2.2 create_txt()函数无法定位到文本,first_link是空值

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.