booze-tools
tika-python
booze-tools | tika-python | |
---|---|---|
3 | 4 | |
14 | 1,418 | |
- | - | |
5.9 | 2.2 | |
9 months ago | 18 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
booze-tools
-
Flattening ASTs (and Other Compiler Data Structures)
Mmmm... Indirectly... Sophie uses my literate parsing system.
-
Is it possible to propagate higher level constructs (+, *) to the generated parse tree in an LR-style parser?
It's not my idea. It's present at least as far back as YACC, "Yet Another Compiler-Compiler", which inspired the name of BISON (another parser-generator named for ungulates). Here's mine, written in Python: https://github.com/kjosib/booze-tools It also has a few extra bits. Feel free to exploit its MIT license to the fullest. I should mention that the design of symbolic reduce-actions was intended to allow one to use the same grammar across multiple host languages. You could even write a driver that does simply build a parse-tree and then hand that off to a separate phase, but in my world I almost always want a bottom-up tree-transduction as first-pass de-sugaring.
-
Undergrad dissertation/thesis ideas relating to programming language design / compiler implementation?
Many CS schools have an undergrad class called "compilers" in which you'll implement (from the ground up) either a Scheme or a thing-that-is-like-Java called decaf, or possibly you'll implement Scheme and just call it decaf. If your school does not have such a course, you can get class notes from Texas A&M or Stanford or a variety of other places. (Here's a parser for it.)
tika-python
-
Document Parsing - an unsolved problem?
At my previous job we had the same problem which we solved by using Tika. We called it on the server along with other stuff, but there is also a Python binding.
-
Extract text from PDF
Tika is from Apache so yes its original code base is Java but it has bindings in other languages. Checkout Tika-Python!
-
Extract text from documents
The Textractor instance is the main entrypoint for extracting text. This method is backed by Apache Tika, a robust text extraction library written in Java. Apache Tika has support for a large number of file formats: PDF, Word, Excel, HTML and others. The Python Tika package automatically installs Tika and starts a local REST API instance used to read extracted data.
What are some alternatives?
ciscoconfparse - Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations.
EasyOCR - Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
txtai - π‘ All-in-one open-source embeddings database for semantic search, LLM orchestration and language model workflows
AECforWebAssembly - A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.
layout-parser - A Unified Toolkit for Deep Learning Based Document Image Analysis
AutoPWN-Suite - AutoPWN Suite is a project for scanning vulnerabilities and exploiting systems automatically.
py-pdf-parser - A Python tool to help extracting information from structured PDFs.
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
contextualized-topic-models - A python package to run contextualized topic modeling. CTMs combine contextualized embeddings (e.g., BERT) with topic models to get coherent topics. Published at EACL and ACL 2021.
paperai - π π€ Semantic search and workflows for medical/scientific papers
paperetl - π βοΈ ETL processes for medical and scientific papers