Comments (4)
from lttoolbox.
ouch :((
from lttoolbox.
I added some tests in fd6e6dc – it turns out to be problematic if we start generating ^KAKE<n><f><pl><def>$
and see a possible path that starts ^K
but then only ends up in other analyses (e.g. ^KK<np>$
). Then we end up with #KAKE
where we should have tried a lowercased analysis.
But if there were no such garden paths, ^KAKE<n><f><pl><def>$
does give an analysis – see difference between the two test dix'es added fd6e6dc#diff-839e968af7bf80a08ea4d97247cbe7fdR1
from lttoolbox.
@mr-martian Do you think this is solvable? I'd love to have a solution for this (but in bilingual mode lt-proc -b
), s.t. that I can e.g. have a dix with
<e> <re>[a-zA-Z]+</re><p><l></l><r><s n="np"/></r></p></e>
<e> <i>med</i> <p><l></l><r><s n="pr"/></r></p></e>
and get
$ echo '^Med<pr>$ ^AbCd<np>$' |lt-proc -C -b nob-nno.autogen.bin
^Med<pr>/Med$ ^AbCd<np>/AbCd$
Currently, we can get either the one or the other:
$ echo '^Med<pr>$ ^AbCd<np>$' |lt-proc -C tmp.bin # eats Med
AbCd
$ echo '^Med<pr>$ ^AbCd<np>$' |lt-proc -b tmp.bin # includes extra "Abcd"
^Med<pr>/Med$ ^AbCd<np>/AbCd/Abcd$
$ echo '^Med<pr>$ ^AbCd<np>$' |lt-proc -c -g tmp.bin # fails to generate Med since lemma is lowercase
#Med AbCd
Possibly related to #167
from lttoolbox.
Related Issues (20)
- utfcpp HOT 1
- Python module undefined symbol
- auto-section big fst's for faster compilation HOT 2
- Duplication in generation HOT 13
- compounding on multiwords
- soft hyphens not always ignored
- configure fails because of missing utf8.h HOT 4
- postgenerator nests wordblanks HOT 1
- `<t/>` alignment in `lsx-comp`
- lsx-comp --debug HOT 2
- lt-proc loops on non-alpha followed by 2-unit codepoint HOT 2
- Post-generation problems when uppercase
- lt-trim trims valid analyses HOT 4
- Transliteration mode doubling inserted characters sometimes
- possible optional input format for lt-comp: lt-expanded dictionaries
- Expand (some) ICU character classes in regex_compiler? HOT 3
- Option to set compound_max_elements in lt-proc HOT 1
- Support for `ANY_CHAR` in regular dix files? HOT 1
- lt-proc -g -b no longer works
- lt-proc -b explodes on a-zA-Z regexes + long input HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lttoolbox.