Skip to content

Commit 34740ba

Browse files
committed
Move language specific target to correct mod file, update paths to fix speller buid fail
1 parent 2a73a2a commit 34740ba

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

tools/spellcheckers/Makefile.mod-desktop-hfst.am

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -68,52 +68,6 @@ FINAL_STRING_EDITS=txt
6868
WORD_REPLACEMENTS=no
6969

7070
### BEGIN: Local build rules for speller transducer: *.hfst ###
71-
# This is a near-copy of the default ruleset
72-
# Reasons for a language-specific routine for building a transducer:
73-
# 1. Tokens ending with a dot (e.g. abbreviations) need special treament by a tokeniser
74-
# They cannot be a part of the analyser that the tokeniser uses
75-
# Therefore, dot-ending stuff must be added separately to the default descriptive analyser
76-
# 2. Certain paths have to be deleted from the descriptive analyser
77-
# 3. Derived proper strings have been downcased already when building the raw analyser;
78-
# no need to do this again
79-
80-
generator-speller-gt-norm.hfst: \
81-
$(top_builddir)/src/analyser-raw-gt-desc.hfst \
82-
$(top_builddir)/src/fst/abbrevdot.tmp.hfst \
83-
$(top_builddir)/src/filters/remove-CLB-strings.hfst \
84-
$(top_builddir)/src/filters/remove-error-strings.hfst \
85-
$(top_builddir)/src/filters/remove-MinusSpell-strings.hfst \
86-
$(top_builddir)/src/filters/remove-PUNCT-strings.hfst \
87-
$(top_builddir)/src/filters/remove-use_marg-strings.hfst \
88-
$(top_builddir)/src/filters/remove-orig_lang-tags.hfst \
89-
$(top_builddir)/src/filters/remove-usage_except_speller-tags.hfst \
90-
$(top_builddir)/src/filters/remove-Use_GC-strings.hfst \
91-
$(top_builddir)/src/filters/remove-Use_minusGC-tags.hfst \
92-
$(top_builddir)/src/filters/remove-Use_minus_PMatch-tags.hfst \
93-
$(top_builddir)/src/filters/remove-Use_PMatch-strings.hfst \
94-
$(top_builddir)/src/filters/remove-mwe-tags.hfst \
95-
$(top_builddir)/src/filters/remove-nospell-words.est.hfst \
96-
$(top_builddir)/src/filters/remove-NotNorm-wordforms.est.hfst
97-
$(AM_V_XFST_TOOL)$(PRINTF) "set flag-is-epsilon ON\n\
98-
read regex \
99-
@\"$(top_builddir)/src/filters/remove-usage_except_speller-tags.hfst\" \
100-
.o. @\"$(top_builddir)/src/filters/remove-orig_lang-tags.hfst\" \
101-
.o. @\"$(top_builddir)/src/filters/remove-CLB-strings.hfst\" \
102-
.o. @\"$(top_builddir)/src/filters/remove-error-strings.hfst\" \
103-
.o. @\"$(top_builddir)/src/filters/remove-MinusSpell-strings.hfst\" \
104-
.o. @\"$(top_builddir)/src/filters/remove-PUNCT-strings.hfst\" \
105-
.o. @\"$(top_builddir)/src/filters/remove-use_marg-strings.hfst\" \
106-
.o. @\"$(top_builddir)/src/filters/remove-Use_minus_PMatch-tags.hfst\" \
107-
.o. @\"$(top_builddir)/src/filters/remove-Use_minusGC-tags.hfst\" \
108-
.o. @\"$(top_builddir)/src/filters/remove-Use_GC-strings.hfst\" \
109-
.o. @\"$(top_builddir)/src/filters/remove-Use_PMatch-strings.hfst\" \
110-
.o. @\"$(top_builddir)/src/filters/remove-mwe-tags.hfst\" \
111-
.o. @\"$(top_builddir)/src/filters/remove-nospell-words.est.hfst\" \
112-
.o. @\"$(top_builddir)/src/filters/remove-NotNorm-wordforms.est.hfst\" \
113-
.o. [@\"$<\" | @\"$(top_builddir)/src/fst/abbrevdot.tmp.hfst\"] \
114-
;\n\
115-
save stack $@\n\
116-
quit\n" | $(HFST_XFST) -p $(MORE_VERBOSITY) $(HFST_FORMAT)
11771

11872
#### END: Local build rules for speller transducer: *.hfst ####
11973

tools/spellcheckers/Makefile.mod-spellcheckers.am

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,52 @@
1010
# analyser-speller-gt-norm.%: analyser-speller-gt-norm.tmp.%
1111
# build rules
1212

13+
# This is a near-copy of the default ruleset
14+
# Reasons for a language-specific routine for building a transducer:
15+
# 1. Tokens ending with a dot (e.g. abbreviations) need special treament by a tokeniser
16+
# They cannot be a part of the analyser that the tokeniser uses
17+
# Therefore, dot-ending stuff must be added separately to the default descriptive analyser
18+
# 2. Certain paths have to be deleted from the descriptive analyser
19+
# 3. Derived proper strings have been downcased already when building the raw analyser;
20+
# no need to do this again
21+
22+
generator-speller-gt-norm.hfst: \
23+
$(top_builddir)/src/fst/analyser-raw-gt-desc.hfst \
24+
$(top_builddir)/src/fst/morphology/abbrevdot.tmp.hfst \
25+
$(top_builddir)/src/fst/filters/remove-CLB-strings.hfst \
26+
$(top_builddir)/src/fst/filters/remove-error-strings.hfst \
27+
$(top_builddir)/src/fst/filters/remove-MinusSpell-strings.hfst \
28+
$(top_builddir)/src/fst/filters/remove-PUNCT-strings.hfst \
29+
$(top_builddir)/src/fst/filters/remove-use_marg-strings.hfst \
30+
$(top_builddir)/src/fst/filters/remove-orig_lang-tags.hfst \
31+
$(top_builddir)/src/fst/filters/remove-usage_except_speller-tags.hfst \
32+
$(top_builddir)/src/fst/filters/remove-Use_GC-strings.hfst \
33+
$(top_builddir)/src/fst/filters/remove-Use_minusGC-tags.hfst \
34+
$(top_builddir)/src/fst/filters/remove-Use_minus_PMatch-tags.hfst \
35+
$(top_builddir)/src/fst/filters/remove-Use_PMatch-strings.hfst \
36+
$(top_builddir)/src/fst/filters/remove-mwe-tags.hfst \
37+
$(top_builddir)/src/fst/filters/remove-nospell-words.est.hfst \
38+
$(top_builddir)/src/fst/filters/remove-NotNorm-wordforms.est.hfst
39+
$(AM_V_XFST_TOOL)$(PRINTF) "set flag-is-epsilon ON\n\
40+
read regex \
41+
@\"$(top_builddir)/src/fst/filters/remove-usage_except_speller-tags.hfst\" \
42+
.o. @\"$(top_builddir)/src/fst/filters/remove-orig_lang-tags.hfst\" \
43+
.o. @\"$(top_builddir)/src/fst/filters/remove-CLB-strings.hfst\" \
44+
.o. @\"$(top_builddir)/src/fst/filters/remove-error-strings.hfst\" \
45+
.o. @\"$(top_builddir)/src/fst/filters/remove-MinusSpell-strings.hfst\" \
46+
.o. @\"$(top_builddir)/src/fst/filters/remove-PUNCT-strings.hfst\" \
47+
.o. @\"$(top_builddir)/src/fst/filters/remove-use_marg-strings.hfst\" \
48+
.o. @\"$(top_builddir)/src/fst/filters/remove-Use_minus_PMatch-tags.hfst\" \
49+
.o. @\"$(top_builddir)/src/fst/filters/remove-Use_minusGC-tags.hfst\" \
50+
.o. @\"$(top_builddir)/src/fst/filters/remove-Use_GC-strings.hfst\" \
51+
.o. @\"$(top_builddir)/src/fst/filters/remove-Use_PMatch-strings.hfst\" \
52+
.o. @\"$(top_builddir)/src/fst/filters/remove-mwe-tags.hfst\" \
53+
.o. @\"$(top_builddir)/src/fst/filters/remove-nospell-words.est.hfst\" \
54+
.o. @\"$(top_builddir)/src/fst/filters/remove-NotNorm-wordforms.est.hfst\" \
55+
.o. [@\"$<\" | @\"$(top_builddir)/src/fst/morphology/abbrevdot.tmp.hfst\"] \
56+
;\n\
57+
save stack $@\n\
58+
quit\n" | $(HFST_XFST) -p $(MORE_VERBOSITY) $(HFST_FORMAT)
1359

1460
# END: Local processing
1561
#########################################

0 commit comments

Comments
 (0)