Git Product home page Git Product logo

getallthetexts's Introduction

GetAllTheTexts

A CFC wrapper to the Apache Tika project. Basically - pass a file name to the CFC and it will attempt to get metadata and text from the document.

Getting Started

Create an instance of the CFC. Like:

Then call read() on a file name.

<cfset stuff = gatt.read("/Users/ray/Documents/foo.doc")>

The result is a structure with 2-3 keys. If everything worked well, you get one key called metadata and one key called text. I bet you can guess what is returned in each key.

If things went poorly, you get a key called error with a stack trace.

The file, test1.cfm, shows a simple example of the API. It reads in all the files in a subdirectory called sources and shows the result for each.

Warning

Both myself and other tests have seen out of memory errors when run on large files. Increasing the max memory JVM setting in the CF admin should help with this.

Credit

Obviously credit goes to the Apache Tika team, but also Mark Mandel and his excellent JavaLoader project.

getallthetexts's People

Contributors

cfjedimaster avatar

Watchers

 avatar  avatar

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.