Usage https://nlp.lsi.upc.edu/freeling/ en Python API usage for coreference, semantic graph and NERC https://nlp.lsi.upc.edu/freeling/node/727 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Python API usage for coreference, semantic graph and NERC</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7996" typeof="schema:Person" property="schema:name" datatype="">mvillanueva</span></span> <span property="schema:dateCreated" content="2023-09-21T07:18:30+00:00" class="field field--name-created field--type-created field--label-hidden">Thu, 09/21/2023 - 09:18</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>----<br /> <strong>Intro</strong><br /> ----<br /> Hi, I have been using freeling for a few months now to extract triplets. So far I have succeded in doing so by using the dependency tree and the full parse tree, but I am trying to improve my approach by using coreference, semantic graph and NERC. </p> <p>----<br /> <strong>My work so far</strong><br /> ---<br /> I checked the tutorial for python, but I couldn't find anything beyond depdency parsing. So I went through the class list (since the same classes should be available for python and c++) and I decided to use relaxcor, but the analyze method of this class only accepts a document as a parameter.</p> <p>----<br /> Problems<br /> ----<br /> So what I'm asking if anyone can help me with is the following:<br /> <strong>1. Document creation problem</strong>: How do you create a document using the python API? All examples use a tokenizer then a splitter which returns a list of sentences. I checked some c++ examples provided in the simple_examples folder (<a href="https://github.com/TALP-UPC/FreeLing/blob/master/src/main/simple_examples/coreferences.cc">https://github.com/TALP-UPC/FreeLing/blob/master/src/main/simple_exampl…</a>) and I tried using the document method "insert" just like the example but after several different attempts I couldn't find a way to provide the right parameters, aparently it expects:<br /> <strong>std::list&lt; freeling::paragraph &gt;::insert(<br /> std::list&lt; freeling::paragraph &gt;::iterator,<br /> std::list&lt; freeling::paragraph &gt;::value_type const &amp;)</strong><br /> So i tried the method append. Which didn't throw any errors but I haven't fully checked if this is correct, since the only thing i checked is the number of words and it didn't seem correct, my text was a dummy test of the likes "Sobre la mesa María ve y coge una manzana, un sombrero, una llave y dos paraguas rojo." and after the append method the document had 80 words.<br /> Here is my code so far for this:<br /> <code><br /> # tokenize input line into a list of words<br /> lw = tk.tokenize(text)<br /> print(lw)<br /> # split list of words in sentences, return list of sentences<br /> ls = sp.split(lw)</code></p> <p> paragraphs = pyfreeling.paragraph(ls)<br /> # list_paragraphs = pyfreeling.ListParagraph([paragraphs])</p> <p> doc = pyfreeling.document()<br /> doc.append(paragraphs)</p> <p> <strong>2. Doubt about entities</strong>: Going back to the example "Sobre la mesa María ve y coge una manzana, un sombrero, una llave y dos paraguas rojo." I realized that working with capitalized words and lowercase produce different results, but by making it all lowercase the entity recognition stops recognizing "maría" as a person. Is there are workaround for this or am I going in the wrong direction? The main problem is that "maría" not recognized as a named entity (which i need it to be by the way) results in "maría" not being the subject of the sentence anymore. Here is how im getting this:<br /> <code><br /> neclass = pyfreeling.ner(lpath + "/nerc/ner/ner-ab-rich.dat")<br /> ls = morfo.analyze_sentence_list(ls)<br /> ls = tagger.analyze_sentence_list(ls)<br /> ls = sen.analyze_sentence_list(ls)<br /> ls = neclass.analyze_sentence_list(ls)<br /> ls = wsd.analyze_sentence_list(ls)</code></p> <p> ls = srl_parser.analyze_sentence_list(ls)<br /> ls = dep.analyze_sentence_list(ls)<br /> ls = parser.analyze_sentence_list(ls)<br /> <strong>3. How to retrieve named entities</strong>: Kind of a follow up of the previous question, how do I get the named entities? I couldn't find any code related to this.</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="7996" id="comment-841" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1695307965"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7996" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7996" typeof="schema:Person" property="schema:name" datatype="">mvillanueva</span></p> <p class="comment__time">Thu, 09/21/2023 - 10:37</p> <p class="comment__permalink"><a href="/freeling/comment/841#comment-841" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/841#comment-841" class="permalink" rel="bookmark" hreflang="en">Problem 1 half solved</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I don't need a solution for problem 1 I just managed to create the document. Yet im unnable to retrieve any groups, according to the semantic graph it is 0<br /> <code>doc.get_semantic_graph().get_num_groups()</code></p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=841&amp;1=default&amp;2=en&amp;3=" token="vKI32KOtq798RVS13SkiWAAZ7vVeuyajFCIQL9T2nwk"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="63" id="comment-844" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1695316449"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Thu, 09/21/2023 - 19:13</p> <p class="comment__permalink"><a href="/freeling/comment/844#comment-844" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/844#comment-844" class="permalink" rel="bookmark" hreflang="en">Problem 1About document…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Problem 1<br /> <br /> About document creation:  You are doing it right, create the paragraph from ls, and then the document from the list of paragraphs.  I am not sure using [ ] will create a proper list. <br /> Keep in mind that Freeling is a C++ library, so you have to adapt to C++ methods, not all python power can be translated into C++ easily.<br /> <br /> To get the coreference groups, you need to run relaxcor.  For relaxcor to run properly, you need to have previously run the document through the whole pipeline (tagger, NERC, wsd, parser, SRL, ...)<br /> <br /> Also, just running relaxcor will add coreference info to your document, but not a semantic graph.  For that you need to run the semantic graph extractor after relaxcor.</p> <p>Problem 2&amp;3</p> <p>There are 3 different NERC modules in freeling, one rule-based and two ML-based. However, all of them use capitalization as a feature, and since both models are trained on standard text, all NEs seen in training are capitalized. So, it is very unlikely that the CRF or the adaBoost model will tag as NE something in lowercase.<br /> <br /> Entities are identfied by their PoS tag.  If a word (or multiword) has a pos-tag starting with "NP", then it means it was recognized by the NERC module. No other modules assign this tag.<br /> <br />  </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=844&amp;1=default&amp;2=en&amp;3=" token="NBGpBqqK-6c2ZnNcOOSW8Qnf-Ymh2hYUkSDtyLSAsNs"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7996" id="comment-847" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1695331770"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7996" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7996" typeof="schema:Person" property="schema:name" datatype="">mvillanueva</span></p> <p class="comment__time">Thu, 09/21/2023 - 23:29</p> <p class="comment__permalink"><a href="/freeling/comment/847#comment-847" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/844#comment-844" class="permalink" rel="bookmark" hreflang="en">Problem 1About document…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/847#comment-847" class="permalink" rel="bookmark" hreflang="en">You mentioned that in order…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>You mentioned that in order to run the relaxcor i need to go through the whole pipeline. Well I am calling the analyzer like this:<br /> <code><br /> doc = pyfreeling.document()<br /> analyzer.analyze(text, doc)</code></p> <p> output = pyfreeling.output_freeling()<br /> output.output_senses(False)<br /> output.output_dep_tree(False)<br /> output.output_corefs(False)<br /> output.output_semgraph(True)<br /> <br /> And configuring the analyzer like this but i get no coreference output:<br /> <code><br /> # define creation options for morphological analyzer modules<br /> opt.config_opt.Lang = lang<br /> opt.config_opt.TOK_TokenizerFile = f"{data}/{lang}" + "/tokenizer.dat"<br /> opt.config_opt.SPLIT_SplitterFile = f"{data}/{lang}" + "/splitter.dat"<br /> opt.config_opt.MACO_Decimal = "."<br /> opt.config_opt.MACO_Thousand = ","<br /> opt.config_opt.MACO_LocutionsFile = f"{data}/{lang}" + "/locucions.dat"<br /> opt.config_opt.MACO_QuantitiesFile = f"{data}/{lang}" + "/quantities.dat"<br /> opt.config_opt.MACO_AffixFile = f"{data}/{lang}" + "/afixos.dat"<br /> opt.config_opt.MACO_ProbabilityFile = f"{data}/{lang}" + "/probabilitats.dat"<br /> opt.config_opt.MACO_DictionaryFile = f"{data}/{lang}" + "/dicc.src"<br /> opt.config_opt.MACO_NPDataFile = f"{data}/{lang}" + "/np.dat"<br /> opt.config_opt.MACO_PunctuationFile = data + "/common/punct.dat"<br /> opt.config_opt.MACO_ProbabilityThreshold = 0.001</code></p> <p> opt.config_opt.NEC_NECFile = f"{data}/{lang}" + "/nerc/nec/nec-ab-poor1.dat"<br /> opt.config_opt.SENSE_ConfigFile = f"{data}/{lang}" + "/senses.dat"<br /> opt.config_opt.UKB_ConfigFile = f"{data}/{lang}" + "/ukb.dat"<br /> opt.config_opt.TAGGER_HMMFile = f"{data}/{lang}" + "/tagger.dat"<br /> opt.config_opt.PARSER_GrammarFile = f"{data}/{lang}" + "/chunker/grammar-chunk.dat"<br /> opt.config_opt.DEP_TxalaFile = f"{data}/{lang}" + "/dep_txala/dependences.dat"<br /> opt.config_opt.DEP_TreelerFile = f"{data}/{lang}" + "/treeler/dependences.dat"</p> <p> opt.config_opt.MACO_CompoundFile = f"{data}/{lang}" + "/compounds.dat"<br /> opt.config_opt.COREF_CorefFile = f"{data}/{lang}" + "/coref/relaxcor_constit/relaxcor.dat"</p> <p> opt.invoke_opt.TAGGER_ForceSelect = pyfreeling.RETOK<br /> opt.invoke_opt.SENSE_WSD_which = pyfreeling.UKB<br /> opt.invoke_opt.TAGGER_which = pyfreeling.HMM<br /> opt.invoke_opt.DEP_which = pyfreeling.TXALA<br /> opt.invoke_opt.SRL_which = pyfreeling.TREELER<br /> opt.invoke_opt.InputLevel = pyfreeling.TEXT<br /> opt.invoke_opt.OutputLevel = pyfreeling.SEMGRAPH</p> <p> # choose which modules among those available will be used by default<br /> opt.invoke_opt.MACO_UserMap=False<br /> opt.invoke_opt.MACO_AffixAnalysis = True<br /> opt.invoke_opt.MACO_MultiwordsDetection = True<br /> opt.invoke_opt.MACO_NumbersDetection = True<br /> opt.invoke_opt.MACO_PunctuationDetection = True<br /> opt.invoke_opt.MACO_DatesDetection = True<br /> opt.invoke_opt.MACO_QuantitiesDetection = True<br /> opt.invoke_opt.MACO_DictionarySearch = True<br /> opt.invoke_opt.MACO_ProbabilityAssignment = True<br /> opt.invoke_opt.MACO_CompoundAnalysis = False<br /> opt.invoke_opt.MACO_NERecognition = True<br /> opt.invoke_opt.MACO_RetokContractions = False</p> <p> opt.invoke_opt.NEC_NEClassification = True<br /> opt.invoke_opt.PHON_Phonetics = False<br /> </p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=847&amp;1=default&amp;2=en&amp;3=" token="gW_OWSn8QRQjaZB9pkznXoLwXxT2pEHMRNAqtHe9-9Y"></drupal-render-placeholder> </div> </article> </div><article role="article" data-comment-user-id="63" id="comment-850" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1695372960"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 09/22/2023 - 10:56</p> <p class="comment__permalink"><a href="/freeling/comment/850#comment-850" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/850#comment-850" class="permalink" rel="bookmark" hreflang="en">Relaxcor works better on the…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Relaxcor works better on the output of the lstm parser, not txala parser (lstm parser is much more accurate)<br /> <br /> So, you need to set:<br /> opt.config_opt.DEP_LSTMFile = f"{data}/{lang}" + f"/dep_lstm/params-{lang}.dat"<br /> opt.invoke_opt.DEP_which = pyfreeling.LSTM</p> <p>And since you are using LSTM parser and  not the chart parser neither Txala parser, the following options are not necessary:<br /> opt.config_opt.PARSER_GrammarFile = f"{data}/{lang}"+ "/chunker/grammar-chunk.dat"<br /> opt.config_opt.DEP_TxalaFile =  f"{data}/{lang}" + "/dep_txala/dependences.dat"<br /> <br /> You also need to provide a config file for the SRL<br /> opt.config_opt.SRL_TreelerFile =  f"{data}/{lang}" + " treeler/srl.dat"<br /> <br /> as well as for the semgraph extractor<br /> opt.config_opt.SEMGRAPH_SemGraphFile =  f"{data}/{lang}" + "/semgraph/semgraph-SRL.dat"<br /> <br /> <br /> You can check file /usr/share/freeling/config/es.cfg to see which options are available for each module, and which config files may be set for each option.</p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=850&amp;1=default&amp;2=en&amp;3=" token="E_LcKmg1c2qE8N-LhiJQAkR5YzRkSnCMMYDMYPQwhEU"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7996" id="comment-853" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1695393159"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7996" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7996" typeof="schema:Person" property="schema:name" datatype="">mvillanueva</span></p> <p class="comment__time">Fri, 09/22/2023 - 16:32</p> <p class="comment__permalink"><a href="/freeling/comment/853#comment-853" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/850#comment-850" class="permalink" rel="bookmark" hreflang="en">Relaxcor works better on the…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/853#comment-853" class="permalink" rel="bookmark" hreflang="en">Thank you for your quick…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Thank you for your quick response.<br /> When i use relaxcor_dep i get the following message:<br /> RELAXCOR_FEX: Requested feature RCF_DEMONYM not implemented. It will be ignored.<br /> RELAXCOR_FEX: Requested feature RCF_LOC_MATCH not implemented. It will be ignored.</p> <p>but if I change it to relaxcor_constit i get a MENTION_DETECTOR: Error: document is not parsed.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=853&amp;1=default&amp;2=en&amp;3=" token="mVZw93JTwvXOb9-Xm4yXqxxuHsFIJacKy4-LI2JJ1V4"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="63" id="comment-856" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1695394563"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 09/22/2023 - 16:56</p> <p class="comment__permalink"><a href="/freeling/comment/856#comment-856" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/853#comment-853" class="permalink" rel="bookmark" hreflang="en">Thank you for your quick…</a> by <span lang="" about="/freeling/user/7996" typeof="schema:Person" property="schema:name" datatype="">mvillanueva</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/856#comment-856" class="permalink" rel="bookmark" hreflang="en">The first two are warnings,…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>The first two are warnings, you can ignore them</p> <p>relaxcor_constit is to be used if the parser was a constituency parser. (i.e the "PARSER" module in freeling, which I don't recommend since it is rule based and rather obsolete).</p> <p>Since you are using LSTM parser, which is a dependency parser, you need to use relaxcor_dep</p> <p> </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=856&amp;1=default&amp;2=en&amp;3=" token="KZQpb6c6qzWHgZ6vqKHMptrBlS9P_T35gk00cTyJBdQ"></drupal-render-placeholder> </div> </article> </div></div> </section> Thu, 21 Sep 2023 07:18:30 +0000 mvillanueva 727 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/727#comments remove entirely the use of "_" (underscore) from the tagging output https://nlp.lsi.upc.edu/freeling/node/724 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">remove entirely the use of &quot;_&quot; (underscore) from the tagging output</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7858" typeof="schema:Person" property="schema:name" datatype="">kloro2006</span></span> <span property="schema:dateCreated" content="2022-11-10T04:19:20+00:00" class="field field--name-created field--type-created field--label-hidden">Thu, 11/10/2022 - 05:19</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>I would like to remove entirely the use of "_" (underscore) from the tagging output and have each word in the group tagged separately.</p> <p>Here are some examples of what I mean, along with the sections of the original text:</p> <p>LaMuerte.txt:A_el_poco_rato al_poco_rato RG 1 [Al poco rato empezaron a sentirse mal]</p> <p>abanderado.txt:por_medio_de por_medio_de SP 1 [le señalan las faltas del juego por medio de banderas]</p> <p>abajo.txt:En_dirección_a en_dirección_a SP 1 [En dirección a la parte más baja]</p> <p>calabazo cala_bazo NCFS000 0.575281 [un enorme calabazo lleno de piedras]</p> <p>How can I do this?</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-838" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1668670908"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Thu, 11/10/2022 - 09:24</p> <p class="comment__permalink"><a href="/freeling/comment/838#comment-838" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/838#comment-838" class="permalink" rel="bookmark" hreflang="en">There are several reasons…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>There are several reasons why you get this underscores, depending on the involved words, and the solution is different in each case</p> <p>Named entities, dates, physical quantities, and multiword expressions, are detected by some modules in FreeLing, and they are glued together. The responsible modules can be selectively deactivated.</p> <p>The solutions described below assume you have FreeLing installed in your computer, and that you have access to the user manual https://freeling-user-manual.readthedocs.io/en/v4.2/ for details about specific options and how to use it.<br /> <br /> If you are using FreeLing via textserver, then the answer is shorter: Textserver offers pre-canned  services based on FreeLing, but it does not expose all possible options or behaviours of the analyzer. If you want to customize FreeLing behaviour, you need to download and install it locally.</p> <p>So, assuming you have FreeLing in your computer, and you input the sentece:<br /> "Jose Perez vino el martes a las doce con treinta y dos naranjas, al poco rato se bebió dos litros de agua."</p> <p>you get:</p> <p>Jose_Perez jose_perez NP00SP0 1<br /> vino venir VMIS3S0 0.1875<br /> el el DA0MS0 1<br /> martes_a_las_doce [M:??/??/??:12.00:??] W 1<br /> con con SP 1<br /> treinta_y_dos 32 Z 1<br /> naranjas naranja NCCP000 0.638706<br /> , , Fc 1<br /> a_el_poco_rato al_poco_rato RG 1<br /> se se P00CN00 0.494509<br /> bebió beber VMIS3S0 1<br /> dos_litros VL_l:2 Zu 1<br /> de de SP 0.999961<br /> agua agua NCCS000 0.997446<br /> . . Fp 1</p> <p>"jose_perez" is detected by the named entity recognizer. You can deactivate it with option --noner, but that will cause that proper nouns are not marked as such. An alternative is to set the option &lt;SplitMultiwords&gt; to "yes" in the named entity recognizer configuration file (e.g. /usr/share/freeling/es/np.dat)<br /> <br /> "martes_a_las_doce" is detected by the date time recognizer. You can deactivate it with option --nodate.  That will cause that time expressions are not marked.</p> <p>"treinta_y_dos" is detected by the numbers recognizer. You can deactivate it with option --nonumb.  That will cause that numerical expressions are not recognized as such (not even single-word numbers or numbers in figures)<br /> <br /> "al_poco_rato" is detected by the locutions recognized. You can deactivate it with option --noloc<br /> <br /> "dos_litros" is detected by the quantitites recognized. You can deactivate it with option --noquant</p> <p> </p> <p>In you examples there is also "calabazo" -&gt; "cala_bazo"<br /> "calabazo" is not a Spanish word (or if it is, it is not in FreeLing dictionary). So the analyzer tries to see if it is a compound word (like "aguafiestas", "verdeazulado", "tierra-aire", etc.  In this case, it finds a match with two nouns "cala" and "bazo" and marks that.<br /> This is done by the compound detection module. You can deactivate it with option --nocomp<br /> You can include new words in the dictionary editing the file /usr/share/freeling/es/dicc.src</p> <p> </p> <p> </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=838&amp;1=default&amp;2=en&amp;3=" token="kWJaop42Jv1ihyvuo9vc5LT9g4fX_2pqT-oUAW_u5P8"></drupal-render-placeholder> </div> </article> </section> Thu, 10 Nov 2022 04:19:20 +0000 kloro2006 724 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/724#comments Error while compiling Example #1 https://nlp.lsi.upc.edu/freeling/node/721 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Error while compiling Example #1</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7814" typeof="schema:Person" property="schema:name" datatype="">BenDiet</span></span> <span property="schema:dateCreated" content="2022-08-14T07:42:48+00:00" class="field field--name-created field--type-created field--label-hidden">Sun, 08/14/2022 - 09:42</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Hello everyone,</p> <p>I'm a computer science student and working on a project, which involves<br /> the usage of a NLP-tool like FreeLing. My question is probably based on a<br /> easy to see mistake I made, but I can't solve it my self. So I was hoping<br /> someone here could help me with that.</p> <p>I'm currently trying to compile example 1 on my Linux system<br /> and get the following error:</p> <p>FAILED: CMakeFiles/test_freeling.dir/main.cpp.o<br /> /usr/bin/c++ -g -std=gnu++17 -MD -MT CMakeFiles/test_freeling.dir/main.cpp.o -MF CMakeFiles/test_freeling.dir/main.cpp.o.d -o CMakeFiles/test_freeling.dir/main.cpp.o -c /home/ben/Schreibtisch/Bachelor_Projekt/test_freeling/main.cpp<br /> In file included from /usr/include/freeling/morfo/idioma.h:45,<br /> from /usr/include/freeling/morfo/lang_ident.h:44,<br /> from /usr/include/freeling.h:35,<br /> from /home/ben/Schreibtisch/Bachelor_Projekt/test_freeling/main.cpp:2:<br /> /usr/include/freeling/morfo/smoothingLD.h: In constructor ‘freeling::smoothingLD::smoothingLD(const wstring&amp;, const std::map, E&gt;&amp;)’:<br /> /usr/include/freeling/morfo/smoothingLD.h:129:73: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available [-fpermissive]<br /> 129 | if (name==L"LinearDiscountAlpha") { double a; sin&gt;&gt;a; alpha = log(a); notalpha=log(1-a); }<br /> | ^~~<br /> /usr/include/freeling/morfo/smoothingLD.h:129:73: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)<br /> /usr/include/freeling/morfo/smoothingLD.h:129:90: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available [-fpermissive]<br /> 129 | if (name==L"LinearDiscountAlpha") { double a; sin&gt;&gt;a; alpha = log(a); notalpha=log(1-a); }<br /> | ^~~<br /> /usr/include/freeling/morfo/smoothingLD.h:179:18: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available [-fpermissive]<br /> 179 | pUnseen = -log(vsize-ntypes); // log version of 1/(vsize-ntypes)<br /> | ^~~<br /> /usr/include/freeling/morfo/smoothingLD.h:180:14: error: there are no arguments to ‘log’ that depend on a template parameter, so a declaration of ‘log’ must be available [-fpermissive]<br /> 180 | nobs = log(nobs);<br /> | ^~~<br /> ninja: build stopped: subcommand failed.</p> <p>I didn't change anything of the example and don't really know what I did wrong.<br /> I also tried to compile it with the terminal and used the command:</p> <p>g++ example.cc -o example -lfreeling -std=c++0x</p> <p>The same error appeared.<br /> Did I install FreeLing wrong in any way or should I link another lib or something?<br /> Thanks to everyone helping me.</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="7814" id="comment-826" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1660551936"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7814" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7814" typeof="schema:Person" property="schema:name" datatype="">BenDiet</span></p> <p class="comment__time">Mon, 08/15/2022 - 10:09</p> <p class="comment__permalink"><a href="/freeling/comment/826#comment-826" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/826#comment-826" class="permalink" rel="bookmark" hreflang="en">To give you additional…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>To give you additional Information:<br /> I installed 'freeling-4.2-focal-amd64.deb' on 'Linux Mint 20.3 Cinnamon'.<br /> I've also installed all the dependencies mentioned here:<br /> <a href="https://freeling-user-manual.readthedocs.io/en/v4.2/installation/requirements-linux/#install-dependencies">https://freeling-user-manual.readthedocs.io/en/v4.2/installation/requir…</a></p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=826&amp;1=default&amp;2=en&amp;3=" token="ab5iIZGMF89MSnCPgbrcuI7yHqfoKEyjDb9VtJ299fg"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="7814" id="comment-829" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1660557397"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7814" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7814" typeof="schema:Person" property="schema:name" datatype="">BenDiet</span></p> <p class="comment__time">Mon, 08/15/2022 - 11:56</p> <p class="comment__permalink"><a href="/freeling/comment/829#comment-829" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/829#comment-829" class="permalink" rel="bookmark" hreflang="en">I&#039;ve solved the problem by…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I've solved the problem by including to my main file and used using std::log. Is this supposed to be like this?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=829&amp;1=default&amp;2=en&amp;3=" token="r7JA9Jf2NDOPqQSiWZF38P2gqwp27hE-TDV680_w81w"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="63" id="comment-833" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1661757794"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Mon, 08/29/2022 - 09:23</p> <p class="comment__permalink"><a href="/freeling/comment/833#comment-833" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/833#comment-833" class="permalink" rel="bookmark" hreflang="en">That is ok.  The error is…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>That is ok.  The error is caused by a missing "using std::log" in smoothingLD.h, so adding it somewhere is the proper solution.<br /> <br /> It is already fixed in the git master branch, smoothingLD.h already has the "using std:log" line</p> <p>thanks!</p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=833&amp;1=default&amp;2=en&amp;3=" token="Rraa4eahLQNfSG-dn4wnqnedj21V7L4SZ_J52-PG_KE"></drupal-render-placeholder> </div> </article> </section> Sun, 14 Aug 2022 07:42:48 +0000 BenDiet 721 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/721#comments Dependency parser generated info after analysis https://nlp.lsi.upc.edu/freeling/node/716 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Dependency parser generated info after analysis</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7736" typeof="schema:Person" property="schema:name" datatype="">Josenp1311</span></span> <span property="schema:dateCreated" content="2022-01-21T09:23:08+00:00" class="field field--name-created field--type-created field--label-hidden">Fri, 01/21/2022 - 10:23</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Hello everyone.</p> <p>I'm trying to replicate the dependency parsing results from the demo 4.2 on the Java 4.0 version, but I'm having some troubles doing so.</p> <p>In the 4.2 demo, in the CONLL format, there are two new columns generated after selecting the dependency parsing, that's the information I'm looking for.</p> <p>First. I can't find where that information is stored after doing the analysis with the Rule-based Dependecy Parser, I'm assuming the information is stored on the DepTree generated in the sentence after analyze it, but I don't know exactly where. The closest thing I found is the label generated in the nodes, but the labels generated don't match with the ones on the 4.2 demo.</p> <p>I don't know if I'm looking at the wrong place, the labels are different on the 4.0 version, I'm doing the wrong dependency parsing method, or what I'm trying to do is impossible in the 4.0 version.</p> <p>Thank you for your time!</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-806" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1642791383"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 01/21/2022 - 19:56</p> <p class="comment__permalink"><a href="/freeling/comment/806#comment-806" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/806#comment-806" class="permalink" rel="bookmark" hreflang="en">You question is a bit…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>You question is a bit confusing...  "two new columns"... which two exactly?  columns are always there, but depending on the used analyzers they have just dashes...</p> <p>I'm going to assume that you mean columns 10 and 11 as shown in the demo, which contain the dependency head and function for each token.</p> <p>If you use FreeLing API, you'll get a dep_tree with the same information.  Only that the head number is not a number, but just the parent of each node (so you don't need the numbers, just accessing the parent node does the trick). The function is the attribute 'label' in the node, that can be obtained with get_label().</p> <p>About labels matching between versions, that depends on which parser you use. The rule-based  parser uses a custom set of labels. Statistical parsers (treeler and lstm) use the label set from the training corpus (which is CoNLL-X shared task corpus).<br /> If you use the same parser in both versions, labels should be the same.</p> <p>Notice that the web demo uses the lstm parser.  If you use the rule-based parser, labels will not be the same.</p> <p>Finally, notice also that the rule-based parser is a rather obsolete and its performance is below the state-of-the-art. You'll get better results with the lstm parser in 4.2.<br /> If you want to stick with 4.0 (not recommended, it is over 5 years old), you should use dep_treeler parser, not the rule based one.</p> <p>If all this does not answer your question, please be clear in what  is the problem. An example may help.</p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=806&amp;1=default&amp;2=en&amp;3=" token="wJagGrJtf3Wey98pOt48PDOpYRL2UGkKrMc_-he8vfA"></drupal-render-placeholder> </div> </article> </section> Fri, 21 Jan 2022 09:23:08 +0000 Josenp1311 716 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/716#comments JRE Crashing when using Freeling https://nlp.lsi.upc.edu/freeling/node/703 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">JRE Crashing when using Freeling</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7708" typeof="schema:Person" property="schema:name" datatype="">Ayto</span></span> <span property="schema:dateCreated" content="2021-08-16T11:56:43+00:00" class="field field--name-created field--type-created field--label-hidden">Mon, 08/16/2021 - 13:56</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Hello everyone, hope you're well.</p> <p>I am using the Freeling library for my Master's Degree thesis on Java, so using the JFreeling API.<br /> Whilst it is working perfectly well on its own, I need to combine it with the ExtJWNL library to extract hyponyms and other semantic relationships.<br /> Since introducing the JWNL library, a SIGSEGV error has been thrown at me every time:</p> <p>--------------------------------------------------------------------<br /> #<br /> # A fatal error has been detected by the Java Runtime Environment:<br /> #<br /> # SIGSEGV (0xb) at pc=0x00007f9035e9d308, pid=4378, tid=0x00007f9072ba7700<br /> #<br /> # JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)<br /> # Java VM: OpenJDK 64-Bit Server VM (25.292-b10 mixed mode linux-amd64 compressed oops)<br /> # Problematic frame:<br /> # C [libJfreeling.so+0x14d308] std::_Rb_tree, std::less, std::allocator &gt;::_M_begin() const+0xc<br /> #<br /> # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again<br /> #<br /> # An error report file with more information is saved as:<br /> # /home/ayto/IdeaProjects/Lexical/hs_err_pid4378.log<br /> Compiled method (nm) 98787 953 n 0 edu.upc.Jfreeling.JfreelingJNI::Word_getSensesString__SWIG_1 (native)<br /> total in heap [0x00007f905c4f4790,0x00007f905c4f4b20] = 912<br /> relocation [0x00007f905c4f48b8,0x00007f905c4f4900] = 72<br /> main code [0x00007f905c4f4900,0x00007f905c4f4b18] = 536<br /> oops [0x00007f905c4f4b18,0x00007f905c4f4b20] = 8<br /> Compiled method (c1) 98787 862 3 sun.nio.cs.UTF_8$Encoder::encodeLoop (28 bytes)<br /> total in heap [0x00007f905c4a5790,0x00007f905c4a5fb8] = 2088<br /> relocation [0x00007f905c4a58b8,0x00007f905c4a5928] = 112<br /> main code [0x00007f905c4a5940,0x00007f905c4a5dc0] = 1152<br /> stub code [0x00007f905c4a5dc0,0x00007f905c4a5e78] = 184<br /> metadata [0x00007f905c4a5e78,0x00007f905c4a5e90] = 24<br /> scopes data [0x00007f905c4a5e90,0x00007f905c4a5f08] = 120<br /> scopes pcs [0x00007f905c4a5f08,0x00007f905c4a5f98] = 144<br /> dependencies [0x00007f905c4a5f98,0x00007f905c4a5fa0] = 8<br /> nul chk table [0x00007f905c4a5fa0,0x00007f905c4a5fb8] = 24<br /> #<br /> # If you would like to submit a bug report, please visit:<br /> # <a href="http://bugreport.java.com/bugreport/crash.jsp">http://bugreport.java.com/bugreport/crash.jsp</a><br /> # The crash happened outside the Java Virtual Machine in native code.<br /> # See problematic frame for where to report the bug.<br /> #<br /> -----------------------------------------------------------------------------------------------</p> <p>I am using two document databases, A large one (~7200 docs), and a tiny sample(20) for tests. I'm using four semantic fields: hypernym, hyponyms, holonyms and meronyms.<br /> Running the program trying to extract each at a run, on the test database all are working but for the hyponyms. No matter the depth choosen.<br /> On the large main database, none of them is working.</p> <p>What could be the problem here? I have been scratching my head over it on my own for a month now and haven't made any progress, any help is welcomed, thank you.</p> <p>INFOS: Using Ubuntu and coding using Netbeans (tried changing IDE moving to IntelliJ too).<br /> Here is the Java Code:<br /> <a href="https://justpaste.it/2k0kb">https://justpaste.it/2k0kb</a></p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-741" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1629703966"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Mon, 08/23/2021 - 09:32</p> <p class="comment__permalink"><a href="/freeling/comment/741#comment-741" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/741#comment-741" class="permalink" rel="bookmark" hreflang="en">I am not familiar with…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I am not familiar with ExtJWNL, so I am not sure of what may be the problem.</p> <p>Also, it is not clear how are you comibing ExtJWNL and FreeLing.  It may be something as simple as a missing synset in FL sense database.</p> <p>You should try to narrow down the issue:  Does it happen with a specific word or text?  which?  I see that the problem is with getSensesString... What parameters make it crash? </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=741&amp;1=default&amp;2=en&amp;3=" token="LbroE1cMNnn9INpyBdnIflarFLPDI93dJPEEjINFJtA"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7708" id="comment-745" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1631064413"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7708" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7708" typeof="schema:Person" property="schema:name" datatype="">Ayto</span></p> <p class="comment__time">Wed, 09/08/2021 - 03:26</p> <p class="comment__permalink"><a href="/freeling/comment/745#comment-745" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/741#comment-741" class="permalink" rel="bookmark" hreflang="en">I am not familiar with…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/745#comment-745" class="permalink" rel="bookmark" hreflang="en">Apologies for the very late…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Apologies for the very late reply, I hope it's not too late to get help though.<br /> Unfortunately I have been unable to narrow down the error. I have tried pinning down a possibly problematic file, or even word, but it's not it. The error doesn't always happen on the same file, in fact it may happen with previously working files, nor does it happen with specific words. Sometimes the error occurs just before FL start treating a new text.</p> <p>What I have been able to find out is that on the 20-documents mini corpus I use for testing purposes, I am able to use FL to extract synsets (as is the case with the main corpus) as well as extract their hypernyms (crash on the main corpus), but not they hyponyms, unless the depth is set at 1. Meaning I can only extract the direct hyponyms of each word present in the mini corpus.</p> <p>To give more precision as to how I proceed: I use a SimpleFileVisitor to walk through the files that are present in different folders (the folders are the labels for my classification). First I treat each text one by one with FL: Tokenization, disambiguation etc. I also capture each word and extract its synset. The goal is to write a Sparse Matrix for my SVM algorithm to train/test.<br /> So basically I end up with a file written like this:<br /> LABEL n:m n:m n:m<br /> LABEL n:m n:m n:m (...)</p> <p>With Label, the name of the folder containing the file, n the synset of the word, m the number of its occurences.</p> <p>When I was done with this step, I introduced JWNL to extract hypernyms, hyponyms, meronyms etc. and see if it improves the Classification.<br /> To do so, I simply made it so that in the middle of a FL analysis, I would take the currently processed word and use JWNL to get its hypernyms from its synset, up to a certain depth. I would then add those hypernyms' synsets to the Matrix.</p> <p>But I have struggled with this process ever since without finding a solution.<br /> Here's a copy of a bug report written by the JVM, I am seeing that the problem indeed occurs with getSensesString and during the WalkFileTree process, but I haven't been able to understand what the issue is exactly.<br /> <a href="https://jpst.it/2CkKz">https://jpst.it/2CkKz</a></p> <p>Thousand thanks for your time.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=745&amp;1=default&amp;2=en&amp;3=" token="z5OgJ030SyidAkpG-9tUKPplhBolwwpCfwkfQLryprQ"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="63" id="comment-747" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1631548685"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Mon, 09/13/2021 - 17:58</p> <p class="comment__permalink"><a href="/freeling/comment/747#comment-747" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/745#comment-745" class="permalink" rel="bookmark" hreflang="en">Apologies for the very late…</a> by <span lang="" about="/freeling/user/7708" typeof="schema:Person" property="schema:name" datatype="">Ayto</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/747#comment-747" class="permalink" rel="bookmark" hreflang="en">I do not have enough…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I do not have enough information to help you... You should activate the debug options in freeling to see what is going on. (build freeling with cmake option -DTRACES=ON, and then set TraceLevel and TraceModule variables in your program. See user manual for details</p> <p>However, it may be easier to split your job in two stages:  First you run a simpler program that uses freeling to produce your file  with "LABEL n:m n:m n:m" etc</p> <p>Then you write a separate program that reads this file and uses JWNL to look for hipernyms, hiponyms or whatnot.</p> <p>In this way, you get rid of any possible interaction between FL and JWNL (which seems to be what is causing problems), and having them separated it may be easier to spot what the problem (is if it persists)</p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=747&amp;1=default&amp;2=en&amp;3=" token="j-N1_d85oeIRykqXhjpyJGq9qdiE_oa40qsXFlkVb84"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7708" id="comment-748" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1631686408"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7708" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7708" typeof="schema:Person" property="schema:name" datatype="">Ayto</span></p> <p class="comment__time">Wed, 09/15/2021 - 08:13</p> <p class="comment__permalink"><a href="/freeling/comment/748#comment-748" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/747#comment-747" class="permalink" rel="bookmark" hreflang="en">I do not have enough…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/748#comment-748" class="permalink" rel="bookmark" hreflang="en">We thought of the same thing…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>We thought of the same thing. I did just that. Separated the two in the same manner you described. Works all fine now. Thank you so much for taking the time to answer and for your help!</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=748&amp;1=default&amp;2=en&amp;3=" token="yVsr3RLcE2L0rReT6jvdL_ltzVOqyIP4v4amZx9439I"></drupal-render-placeholder> </div> </article> </div></div><article role="article" data-comment-user-id="7708" id="comment-746" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1631066594"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7708" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7708" typeof="schema:Person" property="schema:name" datatype="">Ayto</span></p> <p class="comment__time">Wed, 09/08/2021 - 04:02</p> <p class="comment__permalink"><a href="/freeling/comment/746#comment-746" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/741#comment-741" class="permalink" rel="bookmark" hreflang="en">I am not familiar with…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/746#comment-746" class="permalink" rel="bookmark" hreflang="en">I also, somehow, forgot to…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I also, somehow, forgot to mention but during my tests, for some weird reasons the last word just before a crash would be printed out like this:<br /> "CURRENT WORD: 챀翧emmed"<br /> For some reason, no matter the word, Some letters are swapped with Kanji characters. My documents are all in English only.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=746&amp;1=default&amp;2=en&amp;3=" token="OcXjXVtSQyURTcVu7ChMNm4H5u8n6aMj25MLz8cUMAU"></drupal-render-placeholder> </div> </article> </div> </section> Mon, 16 Aug 2021 11:56:43 +0000 Ayto 703 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/703#comments Differences in dependenency parses across outlvs https://nlp.lsi.upc.edu/freeling/node/702 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Differences in dependenency parses across outlvs</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7702" typeof="schema:Person" property="schema:name" datatype="">maniol</span></span> <span property="schema:dateCreated" content="2021-05-31T09:46:14+00:00" class="field field--name-created field--type-created field--label-hidden">Mon, 05/31/2021 - 11:46</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Hello, I've been observing some inconsistencies wrt dependecy parser. I obtain different dependency parses in "dep" output level and in "semgraph" output level with Freeling 4.2 and lstm dep parser.<br /> Frase: "atm withdrawal five hundred dollars on june seventeenth"<br /> <strong>--outlvl dep</strong><br /> <code><br /> "dependencies" : [<br /> {"token" : "t1.2", "function" : "ROOT", "word" :"withdrawal", "children" : [<br /> {"token" : "t1.1", "function" : "NMOD", "word" : "atm"},<br /> {"token" : "t1.3", "function" : "ADV", "word" : "five_hundred_dollars"},<br /> {"token" : "t1.4", "function" : "TMP", "word" : "on", "children" : [<br /> {"token" : "t1.5", "function" : "PMOD", "word" : "june_seventeenth"}<br /> ]}<br /> </code><br /> <strong>--outlvl semgraph</strong><br /> <code><br /> "dependencies" : [<br /> {"token" : "t1.3", "function" : "ROOT", "word" : "five_hundred_dollars", "children" : [<br /> {"token" : "t1.2", "function" : "NMOD", "word" : "withdrawal", "children" : [<br /> {"token" : "t1.1", "function" : "NMOD", "word" : "atm"}<br /> ]},<br /> {"token" : "t1.4", "function" : "LOC", "word" : "on", "children" : [<br /> {"token" : "t1.5", "function" : "PMOD", "word" : "june_seventeenth"}<br /> ]}<br /> ]}]<br /> </code><br /> Also, this same sentence yields yet another dep parse in the online demo (with semgraph outout level):<br /> <code><br /> dependencies:<br /> depnode function="ROOT" token="t1.2" word="withdrawal"<br /> depnode function="NMOD" token="t1.1" word="atm"/<br /> depnode function="NMOD" token="t1.3" word="five_hundred_dollars"<br /> depnode function="TMP" token="t1.4" word="on"<br /> depnode function="PMOD" token="t1.5" word="june_seventeenth"<br /> </code></p> <p>The demo parse is the most correct parse.<br /> Could you please explain how I can reproduce the online demo pipeline locally? What parameters should I set to what values so that I can obtain the same parse locally?<br /> Thank you.</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-739" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1622824918"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 06/04/2021 - 18:41</p> <p class="comment__permalink"><a href="/freeling/comment/739#comment-739" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/739#comment-739" class="permalink" rel="bookmark" hreflang="en">FreeLing version running in…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>FreeLing version running in the demo is not necessarily 4.2, it may be some later development version, so that explains one of the differences.</p> <p>But if you set --dep lstm in both output levels, the tree should be the same.<br /> This may be some bug in 4.2 maybe fixed in the development version.</p> <p>I'll check if I can reproduce the problem in master branch and if so, try to find out the cause.</p> <p><br />  </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=739&amp;1=default&amp;2=en&amp;3=" token="iUPSYClwbCWi0VrZo7QDU6FziTtdZKaEcOLPfCCgYLQ"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="63" id="comment-740" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1623053181"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Mon, 06/07/2021 - 10:06</p> <p class="comment__permalink"><a href="/freeling/comment/740#comment-740" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/740#comment-740" class="permalink" rel="bookmark" hreflang="en">I found the problem.  There…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I found the problem.  There was a bug in the "analyzer" program that affected the interaction between the selected output level and the parser to be used. For "semgraph", it ended up not using the lstm parser, but treeler.</p> <p>I fixed the option management, so it will work now.  You can replace your main program in:</p> <p>src/main/sample_analyzer/main.cc</p> <p>with the one in master<br /> https://github.com/TALP-UPC/FreeLing/blob/master/src/main/sample_analyzer/main.cc</p> <p>then "make install" again, and it should work.  Let me know if it doesn't</p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=740&amp;1=default&amp;2=en&amp;3=" token="qrQYVm0riXpIgxDtHfemgP4Nd68oPnPZj-edfEt9QfQ"></drupal-render-placeholder> </div> </article> </section> Mon, 31 May 2021 09:46:14 +0000 maniol 702 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/702#comments Adding new named entities to Freeling https://nlp.lsi.upc.edu/freeling/node/700 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Adding new named entities to Freeling</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></span> <span property="schema:dateCreated" content="2021-01-23T00:23:24+00:00" class="field field--name-created field--type-created field--label-hidden">Sat, 01/23/2021 - 01:23</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>I've been using Freeling for a while and it seems like a great project. What I have used it the most for is to work with named entities. Now I am interested in adding new entities to the recognition, so I wonder if someone here has already done this and could help me a little, I have been looking at the code and it is not as simple as using a corpus labeled with the new entities, you have to change various things in the scripts.<br /> In short, someone from here in the community has already added new entities to the recognition in freeling, could you give me some advice on which files to modify and how?</p> <p>(Additionally I have another question about how to obtain the necessary elements to create a corpus in full format, specifically lemma, PoS tag and the list of triple lemma-tag-probabilty for all possible word readings.)</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-734" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1611739299"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Wed, 01/27/2021 - 10:21</p> <p class="comment__permalink"><a href="/freeling/comment/734#comment-734" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/734#comment-734" class="permalink" rel="bookmark" hreflang="en"> To alter the set of classes…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p> To alter the set of classes, there are indeed a few changes to do to the scripts.</p> <p>Basically, you should look for the places where the freeling-like tags (NP00G00, NP00SP0, etc) are used or mapped to generic class names (LOC, PER, etc)</p> <p>This happens in:</p> <p>    corpus/bin/extract-gaz.sh<br />     nec/bin/extract-gaz.sh<br />        Several places mapping one set of labels to the other:<br />       nom["NP00SP0"]="PER"; nom["NP00G00"]="LOC";<br />       nom["NP00O00"]="ORG"; nom["NP00V00"]="MISC";<br /> <br />     corpus/bin/nec2full.awk<br />       Same agaain<br />      c["NP00SP0"]="PER"; c["NP00G00"]="LOC"    c["NP00O00"]="ORG"; c["NP00V00"]="MISC"</p> <p>   nec/bin/nec-adaboost.sh <br />    nec/bin/nec-svm.sh<br />       Some places with a list of freeling labels for the trainer:<br />       "0 NP00SP0 1 NP00G00 2 NP00O00 3 NP00V00"</p> <p>Those should be the only things you need to change</p> <blockquote> <p>(Additionally I have another question about how to obtain the necessary elements to create a corpus in full format, specifically lemma, PoS tag and the list of triple lemma-tag-probabilty for all possible word readings.)</p> </blockquote> <p>You can use FreeLing to produce the Pos tag column.  You can use FreeLign with option "--outlv morfo" to produce the list of possible pos tags.  You can then use "paste" (or a small python script) to put this toghether.  The column with the NE bio class, you'll have to add it manually.</p> <p> </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=734&amp;1=default&amp;2=en&amp;3=" token="lIWYu1Z4S1EJT9R_WsjAFlIOU3UN15VkGSc5WWHc6AQ"></drupal-render-placeholder> </div> </article> </section> Sat, 23 Jan 2021 00:23:24 +0000 UDL 700 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/700#comments retraining ner using freeling corpus https://nlp.lsi.upc.edu/freeling/node/697 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">retraining ner using freeling corpus</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></span> <span property="schema:dateCreated" content="2020-11-19T21:58:54+00:00" class="field field--name-created field--type-created field--label-hidden">Thu, 11/19/2020 - 22:58</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Hello, I would like to extend the classification of named entities of Freeling, improving the ones that already exist and adding some new ones, where can I get the corpus with which the model that comes by default in Freeling was trained? the language in which I want to do this is in Spanish.</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-720" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1605861000"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 11/20/2020 - 09:30</p> <p class="comment__permalink"><a href="/freeling/comment/720#comment-720" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/720#comment-720" class="permalink" rel="bookmark" hreflang="en">FreeLing is trained on…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>FreeLing is trained on public corpora.</p> <p>NERC is trained with CoNLL 2002 shared task data: https://www.clips.uantwerpen.be/conll2002/ner/</p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=720&amp;1=default&amp;2=en&amp;3=" token="_BqXkf4T_OsoOWMVpp1PnyGP9rlyxllGTYmNJpa7ZKs"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7629" id="comment-725" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1606944009"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7629" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></p> <p class="comment__time">Wed, 12/02/2020 - 22:20</p> <p class="comment__permalink"><a href="/freeling/comment/725#comment-725" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/720#comment-720" class="permalink" rel="bookmark" hreflang="en">FreeLing is trained on…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/725#comment-725" class="permalink" rel="bookmark" hreflang="en">Thank you</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Thank you very much, so what you want to tell me is that, for example, freeling for the recognition of entities in Spanish used the data from this corpus (<a href="https://www.clips.uantwerpen.be/conll2002/ner/data/esp.train">https://www.clips.uantwerpen.be/conll2002/ner/data/esp.train</a> )<br /> That's 270k lines, I guess that's enough. Then I need to transform this corpus to full corpus format before processing, right?<br /> Now a question, if I wanted to add new classes to the classification of named entities, could I use that same corpus with more elements to keep the previous classifications?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=725&amp;1=default&amp;2=en&amp;3=" token="xDuSaXItFK8E9sJTvfDY3sPRbSN9dxRLgb5EkmTp9PY"></drupal-render-placeholder> </div> </article> </div><article role="article" data-comment-user-id="63" id="comment-726" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1606983421"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Thu, 12/03/2020 - 09:17</p> <p class="comment__permalink"><a href="/freeling/comment/726#comment-726" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/726#comment-726" class="permalink" rel="bookmark" hreflang="en">Thank you very much, so what…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><blockquote> <p>Thank you very much, so what you want to tell me is that, for example, freeling for the recognition of entities in Spanish used the data from this corpus (<a href="https://www.clips.uantwerpen.be/conll2002/ner/data/esp.train">https://www.clips.uantwerpen.be/conll2002/ner/data/esp.train</a> )</p> </blockquote> <p>yes, that's it</p> <blockquote> <p><br /> That's 270k lines, I guess that's enough.</p> </blockquote> <p>Enough or not, it is what is available. I think there is a train set, a development set, and a test set, so the total may be more than that</p> <blockquote> <p>Then I need to transform this corpus to full corpus format before processing, right?</p> </blockquote> <p>Yes, it should be put in the format expected by the training scripts.</p> <blockquote> <p><br /> Now a question, if I wanted to add new classes to the classification of named entities, could I use that same corpus with more elements to keep the previous classifications?</p> </blockquote> <p>Yes, as long as you go over the whole corpus  and manually mark any instances of your new classes as B-NEWCLASS or I-NEWCLASS</p> <p>I am not sure whether you may need to change something in the training script to make it aware of which are the expected classes (you can check that with a quick look at the script).</p> <p> </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=726&amp;1=default&amp;2=en&amp;3=" token="y-N4YfCoxJXfdktMwC5gopL2Mh28YJkS-UpnHWOtQm0"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7629" id="comment-727" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1607024110"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7629" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></p> <p class="comment__time">Thu, 12/03/2020 - 20:34</p> <p class="comment__permalink"><a href="/freeling/comment/727#comment-727" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/726#comment-726" class="permalink" rel="bookmark" hreflang="en">Thank you very much, so what…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/727#comment-727" class="permalink" rel="bookmark" hreflang="en">I will ask you because it…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Thank you very much for the help so quickly, I will take all that into account.</p> <p>I will ask you because it seems that you have experience in the matter but in case you do not know how to answer me, what I originally planned was to do another post. Wouldn't it be possible to define in Freeling a set of rules that help in the classification? for example, if you wanted to add a new entity called Installation, like hospitals, museums, etc. , where the structure would be [word] of [Named entity] and [word] belongs to a list of words such as (hospital, factory, building, etc.) and the set of words that this structure has would be classified as Installation. Do you think there is a way to do something like this?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=727&amp;1=default&amp;2=en&amp;3=" token="0lQxSi3EJH99ipqhfhNSL7_MsMF8BNHxb7RQKnNrN0o"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="63" id="comment-728" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1607069223"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 12/04/2020 - 09:07</p> <p class="comment__permalink"><a href="/freeling/comment/728#comment-728" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/727#comment-727" class="permalink" rel="bookmark" hreflang="en">I will ask you because it…</a> by <span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/728#comment-728" class="permalink" rel="bookmark" hreflang="en">FreeLing does not provide…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>FreeLing does not provide that functionality out of the box.</p> <p>However, you can use FreeLing to process a text, tokenize it, get the PoS of each word, identify NEs, etc. and then write a small program that detects the patterns  you are interested in using the information in the processed text.</p> <p>That is the main goal of FreeLing: provide a tool that converts text into structured data, so you can use it for your desired application (extracting patterns in your case).</p> <p>One possible workaround  could be using the chart parser: You could define a simple grammar that  identifies the patterns you are interested in (check the user manual for chart_parser module).<br /> Since the parser is devised to perform shallow syntactic analysis, depending on the pattterns you want to find, it may not have the right expression power.. In any case, it may be worth a try.</p> <p> </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=728&amp;1=default&amp;2=en&amp;3=" token="Iij4LwrDe9mHrp_tbF3x1WG9nnQsKLTUSD5_WfnXaCk"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7629" id="comment-731" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1608135790"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7629" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></p> <p class="comment__time">Wed, 12/16/2020 - 17:23</p> <p class="comment__permalink"><a href="/freeling/comment/731#comment-731" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/728#comment-728" class="permalink" rel="bookmark" hreflang="en">FreeLing does not provide…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/731#comment-731" class="permalink" rel="bookmark" hreflang="en">I&#039;ve been reading about the…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I've been reading about the chart_parser module and I still don't really understand it at all, Freeling is an excellent project but unfortunately the documentation still needs to improve a bit. I will continue investigating to see if I can understand how to use it well. I wanted to ask you a question, do you know if there is a script that converts the CoNLL 2002 corpus (<a href="https://www.clips.uantwerpen.be/conll2002/ner/data/esp.train">https://www.clips.uantwerpen.be/conll2002/ner/data/esp.train</a>) to full corpus format to be able to do the training with the "prepare-corpus.sh" script?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=731&amp;1=default&amp;2=en&amp;3=" token="m3HP5QQZOxF0Wr9yauOYUsowZvOSGUT6s_Ee5OSMomE"></drupal-render-placeholder> </div> </article> </div></div></div><article role="article" data-comment-user-id="63" id="comment-732" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1608148017"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Wed, 12/16/2020 - 20:46</p> <p class="comment__permalink"><a href="/freeling/comment/732#comment-732" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/732#comment-732" class="permalink" rel="bookmark" hreflang="en">I&#039;ve been reading about the…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><blockquote> <p>I've been reading about the chart_parser module and I still don't really understand it at all,</p> </blockquote> <p> A chart parser is a parser that expects a CFG grammar.  The patterns you suggested (e.g. "(hospital|bank|government) of NE ") can be described with a CFG grammar.</p> <p>You should not use this module until you understand what a CFG grammar is and can write one.</p> <blockquote> <p> </p> <p>Freeling is an excellent project but unfortunately the documentation still needs to improve a bit.</p> </blockquote> <p>  FreeLing is free software, developed with very low resources, and provided "as is".<br />   You are welcome to contribute anytime.</p> <blockquote> <p>do you know if there is a script that converts the CoNLL 2002 corpus to full corpus format to be able to do the training with the "prepare-corpus.sh" script?</p> </blockquote> <p> There is none, but shouldn't be difficult to build one, since it is a similar format, and FreeLing produces it (e.g. if you want to add pos tag columns to the file)</p> <p> </p> <p> </p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=732&amp;1=default&amp;2=en&amp;3=" token="N8ltB26_sSTnAdXqvfhRWDmj6STQZPfm3RgN8CY-jRQ"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7629" id="comment-733" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1608232304"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7629" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7629" typeof="schema:Person" property="schema:name" datatype="">UDL</span></p> <p class="comment__time">Thu, 12/17/2020 - 20:11</p> <p class="comment__permalink"><a href="/freeling/comment/733#comment-733" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/732#comment-732" class="permalink" rel="bookmark" hreflang="en">I&#039;ve been reading about the…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/733#comment-733" class="permalink" rel="bookmark" hreflang="en">Yes, I know it is a free…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Yes, I know it is a free project, and it is great, I am just learning to use Freeling well, when I feel more experienced I will try to help as I can. Thank you so much for your help</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=733&amp;1=default&amp;2=en&amp;3=" token="XPNjardiOrI7uRlpXZ8tKw0V38GQQzQObcms_rRbXvk"></drupal-render-placeholder> </div> </article> </div> </section> Thu, 19 Nov 2020 21:58:54 +0000 UDL 697 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/697#comments iOS (terminal): Library not loaded. Image not found https://nlp.lsi.upc.edu/freeling/node/691 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">iOS (terminal): Library not loaded. Image not found</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></span> <span property="schema:dateCreated" content="2020-10-30T11:54:53+00:00" class="field field--name-created field--type-created field--label-hidden">Fri, 10/30/2020 - 12:54</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Dear all,</p> <p>I have just installed FreeLing 4.2 in a MacBook (iOS Catalina) and the language pack.<br /> I amb new on FreeLing and I am not very used to use Terminal.</p> <p>I'd like to tag a text in Catalan. The file TXT (UTF 8) is in the Documents directory.</p> <p>When I try some command, I'll get this:</p> <p>Nou-MacBook-Air:~ sebastia$ cd ~/documents<br /> Nou-MacBook-Air:documents sebastia$ analyze -f myconfig.cfg --outlv tagged prova_preproc.tag<br /> dyld: Library not loaded: /usr/local/opt/boost/lib/libboost_regex-mt.dylib<br /> Referenced from: /usr/local/bin/analyzer<br /> Reason: image not found<br /> /usr/local/bin/analyze: line 39: 24951 Abort trap: 6 $FREELING/bin/analyzer $param<br /> Nou-MacBook-Air:documents sebastia$ </p> <p>What I should do, in order to load that library? FreeLing is installed in the default setup-up directories for MAC.</p> <p>I would apreciate any help.</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="63" id="comment-704" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1604060403"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Fri, 10/30/2020 - 13:19</p> <p class="comment__permalink"><a href="/freeling/comment/704#comment-704" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/704#comment-704" class="permalink" rel="bookmark" hreflang="en">Did you installed required…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Did you installed required libraries, as described in the user manual ?</p> <p><a href="https://freeling-user-manual.readthedocs.io/en/latest/installation/requirements-mac/#install-dependencies">https://freeling-user-manual.readthedocs.io/en/latest/installation/requirements-mac/#install-dependencies</a></p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=704&amp;1=default&amp;2=en&amp;3=" token="RHKjPSqofrYBA-IMGqdUdEW4T3QpUaxK355qyRweJe0"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7670" id="comment-706" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1604081883"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7670" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> <p class="comment__time">Fri, 10/30/2020 - 18:49</p> <p class="comment__permalink"><a href="/freeling/comment/706#comment-706" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/704#comment-704" class="permalink" rel="bookmark" hreflang="en">Did you installed required…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/706#comment-706" class="permalink" rel="bookmark" hreflang="en">Symbol not found</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Permalink</p> <p>Thanks for the answer. I have just installed XCode, HomeBrew and I have run the "brew install boost icu4c" command.</p> <p>However, now I get this other message:</p> <p>Nou-MacBook-Air:documents sebastia$ analyze -f myconfig.cfg --outlv tagged mytext.tag<br /> dyld: lazy symbol binding failed: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm<br /> Referenced from: /usr/local/lib/libfreeling.dylib<br /> Expected in: /usr/local/lib/libboost_regex-mt.dylib</p> <p>dyld: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm<br /> Referenced from: /usr/local/lib/libfreeling.dylib<br /> Expected in: /usr/local/lib/libboost_regex-mt.dylib</p> <p>/usr/local/bin/analyze: line 39: 7433 Abort trap: 6 $FREELING/bin/analyzer $param<br /> Nou-MacBook-Air:documents sebastia$</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=706&amp;1=default&amp;2=en&amp;3=" token="PBF6M214HJ6hrhybdDvQjjUcipuz8h2WwzzfFPFus5Y"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="7670" id="comment-707" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1604083230"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7670" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> <p class="comment__time">Fri, 10/30/2020 - 19:40</p> <p class="comment__permalink"><a href="/freeling/comment/707#comment-707" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/704#comment-704" class="permalink" rel="bookmark" hreflang="en">Did you installed required…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/707#comment-707" class="permalink" rel="bookmark" hreflang="en">And another question, in…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>And another question, in case we can manage to solve the previous problem: how should I pick up the Catalan language package, which is already downloaded and installed? I mean, when running an instruction such as "analyze -f myconfig.cfg --outlv tagged mytext.tag", how does FreeLing now that this text is in Catalan?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=707&amp;1=default&amp;2=en&amp;3=" token="uNUPtG9Jt5jKmaIqPOU7YV1QSE5GUfgVRx24MjWAErE"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="7670" id="comment-708" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1604310708"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7670" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> <p class="comment__time">Mon, 11/02/2020 - 10:51</p> <p class="comment__permalink"><a href="/freeling/comment/708#comment-708" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/704#comment-704" class="permalink" rel="bookmark" hreflang="en">Did you installed required…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/708#comment-708" class="permalink" rel="bookmark" hreflang="en">Dear Lluís, I installed…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Dear Lluís,</p> <p>I installed XCode, HomeBrew and I ran the "brew install boost icu4c" command.</p> <p>However, I get this other message:</p> <p><a href="mailto:sebastia@Nou">sebastia@Nou</a>-MacBook-Air documents % analyze -f myconfig.cfg --outlv tagged rond1_preproc.tag<br /> dyld: lazy symbol binding failed: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm<br /> Referenced from: /usr/local/lib/libfreeling.dylib<br /> Expected in: /usr/local/lib/libboost_regex-mt.dylib</p> <p>dyld: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm<br /> Referenced from: /usr/local/lib/libfreeling.dylib<br /> Expected in: /usr/local/lib/libboost_regex-mt.dylib</p> <p>/usr/local/bin/analyze: line 39: 4739 Abort trap: 6 $FREELING/bin/analyzer $param<br /> <a href="mailto:sebastia@Nou">sebastia@Nou</a>-MacBook-Air documents % </p> <p>What could I do? </p> <p>Besides this, in case we can manage to solve the previous problem: how should I pick up the Catalan language package, which is already downloaded and installed? I mean, when running an instruction such as "analyze -f myconfig.cfg --outlv tagged mytext.tag", how does FreeLing now that this text is in Catalan?</p> <p>I would really apreciate your help.</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=708&amp;1=default&amp;2=en&amp;3=" token="-nkqKzI0i9OkWUf9tAhwodszNJcHgoFgpiPybONatVI"></drupal-render-placeholder> </div> </article> </div><article role="article" data-comment-user-id="7670" id="comment-705" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1604080129"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7670" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> <p class="comment__time">Fri, 10/30/2020 - 18:48</p> <p class="comment__permalink"><a href="/freeling/comment/705#comment-705" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/705#comment-705" class="permalink" rel="bookmark" hreflang="en">Symbol not found</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Thanks for the answer. I have just installed XCode, HomeBrew and I have run the "brew install boost icu4c" command.</p> <p>However, now I get this other message:</p> <p>Nou-MacBook-Air:documents sebastia$ analyze -f myconfig.cfg --outlv tagged mytext.tag<br /> dyld: lazy symbol binding failed: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm<br /> Referenced from: /usr/local/lib/libfreeling.dylib<br /> Expected in: /usr/local/lib/libboost_regex-mt.dylib</p> <p>dyld: Symbol not found: __ZN5boost16re_detail_10730011raw_storage6resizeEm<br /> Referenced from: /usr/local/lib/libfreeling.dylib<br /> Expected in: /usr/local/lib/libboost_regex-mt.dylib</p> <p>/usr/local/bin/analyze: line 39: 7433 Abort trap: 6 $FREELING/bin/analyzer $param<br /> Nou-MacBook-Air:documents sebastia$</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=705&amp;1=default&amp;2=en&amp;3=" token="BcVIv_7AOctDpMbml_uR4DB6EhQmZnIeYnzgCW-oDAA"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="63" id="comment-709" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1604478568"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Wed, 11/04/2020 - 09:29</p> <p class="comment__permalink"><a href="/freeling/comment/709#comment-709" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/705#comment-705" class="permalink" rel="bookmark" hreflang="en">Symbol not found</a> by <span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/709#comment-709" class="permalink" rel="bookmark" hreflang="en">MAybe it is related to the…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>MAybe it is related to the boost version...  can you check which version did brew install ?</p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=709&amp;1=default&amp;2=en&amp;3=" token="lMZLwz0GYizFq8oXQDuPi6CvFp_mPkMqetbuSgvwBY4"></drupal-render-placeholder> </div> </article> <div class="indented"><article role="article" data-comment-user-id="7670" id="comment-710" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1604525740"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7670" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> <p class="comment__time">Wed, 11/04/2020 - 22:35</p> <p class="comment__permalink"><a href="/freeling/comment/710#comment-710" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/709#comment-709" class="permalink" rel="bookmark" hreflang="en">MAybe it is related to the…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/710#comment-710" class="permalink" rel="bookmark" hreflang="en">boost 1.74.0</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Thanks you for the answer.</p> <p><a href="mailto:sebastia@Nou">sebastia@Nou</a>-MacBook-Air ~ % brew list --versions<br /> boost 1.74.0<br /> cmake 3.18.4<br /> gdbm 1.18.1_1<br /> icu4c 67.1<br /> node 15.0.1<br /> openssl@1.1 1.1.1h<br /> pcre 8.44<br /> perl 5.32.0<br /> python@3.9 3.9.0_1<br /> readline 8.0.4<br /> sqlite 3.33.0<br /> swig 4.0.2<br /> xz 5.2.5<br /> <a href="mailto:sebastia@Nou">sebastia@Nou</a>-MacBook-Air ~ % </p> <p>What should I do now?</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=710&amp;1=default&amp;2=en&amp;3=" token="zFCRgqg2IqyZBjCwM2pB1CAY8nZFvmK1DV3XrLRt1fg"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="7670" id="comment-711" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1604923644"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/7670" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7670" typeof="schema:Person" property="schema:name" datatype="" content="Sebastià Salvà i Puig">Sebastià Salvà…</span></p> <p class="comment__time">Mon, 11/09/2020 - 13:07</p> <p class="comment__permalink"><a href="/freeling/comment/711#comment-711" hreflang="en">Permalink</a></p> <p class="visually-hidden">In reply to <a href="/freeling/comment/709#comment-709" class="permalink" rel="bookmark" hreflang="en">MAybe it is related to the…</a> by <span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/711#comment-711" class="permalink" rel="bookmark" hreflang="en">Dear Lluís, I am still not…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Dear Lluís,</p> <p>I am still not able to properly run FreeLing aftern installing it. I'd apreciate some help.</p> <p>VERSIONS:<br /> boost 1.74.0<br /> cmake 3.18.4<br /> gdbm 1.18.1_1<br /> icu4c 67.1<br /> node 15.0.1<br /> openssl@1.1 1.1.1h<br /> pcre 8.44<br /> perl 5.32.0<br /> python@3.9 3.9.0_1<br /> readline 8.0.4<br /> sqlite 3.33.0<br /> swig 4.0.2<br /> xz 5.2.5</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=711&amp;1=default&amp;2=en&amp;3=" token="XVuR9ndHMI8gYgZjASWVcPVcP3YZ9FkPAm0es3W7-Qo"></drupal-render-placeholder> </div> </article> </div></div> </section> Fri, 30 Oct 2020 11:54:53 +0000 Sebastià Salvà i Puig 691 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/691#comments semantic graph https://nlp.lsi.upc.edu/freeling/node/689 <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">semantic graph</span> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/freeling/user/7557" typeof="schema:Person" property="schema:name" datatype="">alondra831002</span></span> <span property="schema:dateCreated" content="2020-09-09T05:21:40+00:00" class="field field--name-created field--type-created field--label-hidden">Wed, 09/09/2020 - 07:21</span> <div class="field field--name-taxonomy-forums field--type-entity-reference field--label-above"> <div class="field__label">Forums</div> <div class="field__item"><a href="/freeling/taxonomy/term/3" hreflang="en">Usage</a></div> </div> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>How can I obtain a semantic graph using Freeling with ruby?</p> </div> <section class="field field--name-comment-forum field--type-comment field--label-hidden comment-wrapper"> <article role="article" data-comment-user-id="7557" id="comment-699" class="comment js-comment by-node-author clearfix"> <span class="hidden" data-comment-timestamp="1599629100"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/index.php/user/7557" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/7557" typeof="schema:Person" property="schema:name" datatype="">alondra831002</span></p> <p class="comment__time">Wed, 09/09/2020 - 07:25</p> <p class="comment__permalink"><a href="/freeling/comment/699#comment-699" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/699#comment-699" class="permalink" rel="bookmark" hreflang="en">I use this code line in ruby…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>I use this code line in ruby and I obtain a plain text with the POS information of my input text but I want to obtain a semantic graph in an XML format does somebody know how to do it?</p> <p>system("C:/freeling_win22/freeling/bin/analyzer.exe -f C:/freeling_win22/freeling/data/config/es.cfg &lt;"+file+"&gt;"+ file2)</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=699&amp;1=default&amp;2=en&amp;3=" token="IY0_RY8cqnBC_1Qe6Rb2_5GaEMUcZPRVEZUeCvgZYJw"></drupal-render-placeholder> </div> </article> <article role="article" data-comment-user-id="63" id="comment-700" class="comment js-comment clearfix"> <span class="hidden" data-comment-timestamp="1600091496"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/freeling/user/63" class="profile"> </article> <p class="comment__author"><span lang="" about="/freeling/user/63" typeof="schema:Person" property="schema:name" datatype="">lluisp</span></p> <p class="comment__time">Mon, 09/14/2020 - 15:50</p> <p class="comment__permalink"><a href="/freeling/comment/700#comment-700" hreflang="en">Permalink</a></p> </footer> <div class="comment__content"> <h3><a href="/freeling/comment/700#comment-700" class="permalink" rel="bookmark" hreflang="en">You need to call &quot;analyzer…</a></h3> <div class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>You need to call "analyzer.exe" with the appropriate options. (though it would be better to call "analyze.bat" which takes care of solving paths )</p> <p>User manual on "analyzer.exe" and "analyze.bat":  https://freeling-user-manual.readthedocs.io/en/v4.2/analyzer/</p> <p>User manual on options you can use (you need to look for "output level" and "output format"): https://freeling-user-manual.readthedocs.io/en/v4.2/analyzer/#valid-options</p></div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=700&amp;1=default&amp;2=en&amp;3=" token="ZFQxG9RET3O2HJIOphRdNPoH-cTnu9N2O_WN7df-aT8"></drupal-render-placeholder> </div> </article> </section> Wed, 09 Sep 2020 05:21:40 +0000 alondra831002 689 at https://nlp.lsi.upc.edu/freeling https://nlp.lsi.upc.edu/freeling/node/689#comments