tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (TIKA-490) Support for adding language profiles dynamically
Date Mon, 01 Nov 2010 05:21:23 GMT

     [ https://issues.apache.org/jira/browse/TIKA-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris A. Mattmann resolved TIKA-490.
------------------------------------

    Resolution: Fixed

- I applied the latest patch from Jan in r1029556. Ultimately we should move to a service-provider
like mechanism on this though the existing patch is quite close to that mechanism in the end.
It would be nice to just have language profiles picked up dynamically on the classpath, but
this is good enough for now. Thanks Jan!

> Support for adding language profiles dynamically
> ------------------------------------------------
>
>                 Key: TIKA-490
>                 URL: https://issues.apache.org/jira/browse/TIKA-490
>             Project: Tika
>          Issue Type: Improvement
>          Components: languageidentifier
>    Affects Versions: 0.7
>            Reporter: Jan H√łydahl
>            Assignee: Chris A. Mattmann
>             Fix For: 0.8
>
>         Attachments: TIKA-490.janhoy.082310.patch, TIKA-490.janhoy.082310.patch, TIKA-490.janhoy.092010.patch,
TIKA-490.janhoy.092010.patch, TIKA-490.Mattmann.082210.2.patch.txt, TIKA-490.Mattmann.082210.patch.txt,
TIKA-490.patch, TIKA-490.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Currently the Tika LanguageIdentifier loads language profiles thorugh a hardcoded static
block in the java code.
> It would be better to make this configurable, so you could add your own languages without
recompiling.
> Suggested approach:
> Remove the static code block loading all languages. Instead look for a tika.languageidentification.properties
file on classpath.
> Now the user can simply make his/her own (additional) language profile files, put them
on the classpath together with a properties file and off you go!
> Also, once you make it configurable, there might be an issue of having the profiles as
static members, as you will force the same behaviour for the whole VM. A static Map of Maps
could solve this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message