Repalce mode in subgraphs only?

34 views
Skip to first unread message

Nadia Ivanova

unread,
Jul 24, 2016, 12:46:51 AM7/24/16
to Unitex-GramLab
Hello everybody and thank you for accepting my request to join the group.

I'm using Unitex with the goal to normalise recurrent patterns in a Spanish corpus.

I have a question about the Replace mode.
I'm trying to use it in sub-graphs (named with -r) with the main graph in mode Ignore (1st option, 'Grammar outputs are not taken into account') and the replacement is not working. The subgraph alone is working fine.

Does it mean it is not possible to use sub-graphs in mode Replace with the main graph in Ignore mode?

The documentation doesn't tell much about it, as far as I could find...

If it's not possible, how could I automate a range of successive treatments using several graphs, some in Replace mode and others in Detect (Ignore) mode?

I hope my question is clear enough.
Thank you in advance for your help.

Cheers,
Nadia

Denis Maurel

unread,
Jul 25, 2016, 2:54:16 AM7/25/16
to Nadia Ivanova, Unitex-GramLab


Dear Nadia

When one use Locate Pattern, Unitex compiles a graph. So the subgraphs and the main graph may have the same option.

For your work, I think that you can use a graph cascade with Apply CasSys Cascade.
The first graphs are your subgraphs in replace mode. The last graph is your main graph in merge mode.


Best regards,

Denis Maurel


____________________________________
Professor Denis Maurel
Université François Rabelais Tours
LI (Computer Science Research Laboratory)
EPU-DI
64 avenue Jean-Portalis
37200 Tours
France
Phone: 33-2.47.36.14.35
Fax: 33-2.47.36.14.22
mailto:denis....@univ-tours.fr

http://www.univ-tours.fr/maurel

http://www.li.univ-tours.fr
http://tln.li.univ-tours.fr/



--
You received this message because you are subscribed to the Google Groups "Unitex-GramLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitex-gramla...@googlegroups.com.
To post to this group, send email to unitex-...@googlegroups.com.
Visit this group at https://groups.google.com/group/unitex-gramlab.
To view this discussion on the web visit https://groups.google.com/d/msgid/unitex-gramlab/dd7b718a-abdd-4f27-86b6-f48ba897c492%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nadia Ivanova

unread,
Jul 25, 2016, 3:08:12 AM7/25/16
to Unitex-GramLab, nadia....@jobseeker.com.au, denis....@univ-tours.fr
Bonjour Denis,
Thank you very much for your answer, I will definitely explore Apply CasSys Cascade option.

Kindest regards,
Nadia

eric.laporte

unread,
Jul 25, 2016, 11:08:05 AM7/25/16
to Unitex-GramLab
Dear Nadia,
CasSys is a good option if you want to apply a sequence of substitutions, and if the output of each one serves as input to the next.
If you do not need to chain substitutions, you can use either the normalization step of the preprocessing (cf. user's manual, Section 2.5.3), or Locate Pattern.
If you use the normalization step of the preprocessing, your main graph and all subgraphs will automatically be applied in the Replace mode.
If you use Locate Pattern, you have to explicitly set the mode to the Replace mode, and this mode will apply to your main graph and all subgraphs.
In both cases, Unitex/GramLab does not allow for applying a graph in one mode and its subgraphs in another mode.
The -r suffix at the end of graph names sets the Replace mode only in the case of a dictionary-graph (cf. user's manual, Section 3.8.3), and dictionary-graphs do not make substitutions.

Best,
Eric Laporte

Nadia Ivanova

unread,
Jul 25, 2016, 11:09:08 PM7/25/16
to Unitex-GramLab
Thank you for these clarifications, Eric.

I opened another feed for more specific question. 

Nadia
Reply all
Reply to author
Forward
0 new messages