Created
July 12, 2013 20:14
-
-
Save KevM/5987424 to your computer and use it in GitHub Desktop.
Using TikaOnDotNet for text extraction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var textExtractor = new TextExtractor(); | |
var result = textExtractor.Extract(@"c:\projects\tikaondotnet\src\TikaOnDotNet.Tests\files\Tika.doc"); | |
// View the result on the console | |
Console.WriteLine("Content Type: " + result.ContentType); | |
Console.WriteLine("\n\n" + result.Text.Trim()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment