El 2017-03-14 11:41, mansur escribió:
> Hello!
>
> File .lexc (in apertium-tat) is becoming bigger and bigger. Currently
> it countains more than 20 800 lines already. It is getting more and
> more uncomfortable to work with it (adding different types of words,
> observing the structure of rules and so on). I don't know if it is
> possible or not, but I would like to suggest some changes:
>
> 1) Maybe we should separate code and lists. We need it to, first of
> all, for more convenient adding new words, sorting these lists and we
> have less chance of "changing" occasionally something else. Most of
> all, it is very time consuming to navigate through the file currently.
>
>
> Maybe we need something like this,
>
> !=============!
> LEXICON Nouns
> !=============!
>
> import nouns.txt
>
> File nouns.txt should contain words only:
> абажур:абажур N1 ; ! ""
> аббат:аббат N1 ; ! ""
> аббатлык:аббатлык N1 ; ! ""
>
> 2) Every list (vocabulary) should be in separate file. For example,
> even Nouns and every proper name group (Cognoms, Patronyms,
> Anthroponyms, Toponyms...) should be in different files:
>
> !=============!
> LEXICON Nouns
> !=============!
> import nouns.txt
>
> !===================!
> LEXICON ProperNouns
> !===================!
> import proper_cognoms.txt
> import proper_patronyms.txt
> import proper_toponyms.txt
In general I'm against it. More on why below, but first: Which text
editor
are you using ? With vim I don't have any particular problem, and I
suspect
emacs users wouldn't either.
In fact the continuation class part of the file is very small in
general, so
it shouldn't make much difference having it there or not.
Why I think it shouldn't be split: When I'm working on lexc files I find
it
extremely useful to be able to quickly jump between the lexicon and the
morphology, and between different parts of the lexicon. For example I
might
want to decide that
Аракчеев:Аракчеев N1 ; ! ""
Is not a noun but rather an NP-COG-OV. How would I do this in vim?
v
:s/N1/NP-COG-OB/g
dd
/NP-COG-OB
p
The whole process takes around 5-10 seconds. There are no doubt
similarly
simple ways to do this in emacs.
If I were to have to do this with separate files, it would take a
substantially
longer amount of time.
For me, any kind of navigation between files takes way more time than
navigation
within a file. If you find navigating within a file slow, then perhaps
you can
explain some use cases and we'll think of some speed ups.
There are two other things to think about:
1) I think there is some sense behind having a shared Gazeteer type
thing for
languages with similar orthographies. But this would require quite a
bit
of thought.
2) I think there is also some sense behind having a shared collection of
nouns
in Russian which are attested in different Turkic languages, as these
are
things I find myself adding over and over again. (Most recently in
Karachay-Balkar),
but again, there would need to be some kind of plan.
Fran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff