Questions and aswers related to FreeLing usage

Problema Freeling 4 en Centos 7.4 JAVA

Submitted by jmfc90 on Fri, 02/02/2018 - 15:40

Hola, tengo un problema al ejecutar Freeling 4.0 para Java en Centos 7.4

Tengo un proceso con 5 threads y al ejecutar cerca de 1000 documentos salta un error interno de C++ (adjunto mapa de memoria).

El codigo que ejecuta en el error es el sigueinte

Termination in a bad_alloc error

Submitted by carlesg on Wed, 01/24/2018 - 18:54


We are using Freeling 3.1 on a LINUX RED HAT Server, from the Java API bridge. We start several JVM services (Uima AS) that can process text request to analyze in some different ways, using Freeling.
Since the last few weeks, the amount of requests is increasing. From that time, we are noticing that some JVM collapse. It seems to be randomly.

Unexpected differences between output format "tagged" and "morfo"

Submitted by koichi on Sun, 01/21/2018 - 17:17

Dear developer,

Will you check these two results? It looks like we can obtain better results with "morfo" output format.

Here is the test sentence:

Marilla lighted a candle and told Anne to follow her, which Anne spiritlessly did, taking her hat and carpet-bag from the hall table as she passed.

NAF output

Submitted by Xsoto on Thu, 12/14/2017 - 11:59


I'm using the '--output naf' option and I see that the resulting format is not tabulated and sometimes consecutive tags appear in the same line, could it be possible to fix it changing some configuration file or adding any other option when calling to Freeling?



How to add new possible PoS tags?

Submitted by Xsoto on Thu, 11/16/2017 - 15:11


I'm trying to adapt Freeling 4.0 so it can analyze domain specific dictionary, identified by specific PoS tags. To do so, I have modified the file "tagset.dat" including the new codes; for instance, to recognize the PoS tag "NC00SC0" I have changed the following line on "tagset.dat":

N 2 noun type/C:common;P:proper gen/F:feminine;M:masculine;C:common num/S:singular;P:plural;N:invariable neclass/S:person;G:location;O:organization;V:other nesubclass/0:0;P:0 degree/V:evaluative

For this one:

How to analyze an already tokenized file

Submitted by andres on Tue, 11/07/2017 - 20:40

I have already tried:

analyze --inplv token -f ca.cfg < orig.txt > target.txt
analyze --inplv splitted -f ca.cfg < orig.txt > target.txt

And also changing at the ca.cfg file the original "InputLevel=text" to "InputLevel=token"
But it alwasys says:
Error - 'text' input format only accepts input analysis level 'text'.

Freeling tagset, some values are not documented

Submitted by David on Fri, 10/13/2017 - 13:37

We have found for some french documents we got the tag PPSCNN0, which is not documented
since the value 'S' not exist 'Person' in the category 'Pronoun' (P) according to…

The same happens for the tag DF0CN0, 'F' is not in the possible type values for a

Language detection

Submitted by andres on Fri, 07/21/2017 - 10:17

Hi there, at the old forum you answered a question on this topic with the code below, so my question is, where do I get the analyzer.php file, or.... can you share the code of your demo version....
I tried this code already unsuccessfully though..



// Adjust this path to your local FreeLing installation
$FL_DIR = "/usr/local";