Skip to content

Commit

Permalink
fiksa tag-testen, dette må også gjøres i giellacore
Browse files Browse the repository at this point in the history
  • Loading branch information
leneantonsen committed Sep 12, 2024
1 parent 52e5587 commit 2fb16ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/tag_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#shell script to see if there are tags which are not declared in root.lexc or if tags are misspelled

echo 'Are there tags not declared in root.lexc or misspelled?'
cat src/fst/morphology/clitics.lexc src/fst/morphology/compounding.lexc src/fst/affixes/*lexc src/fst/morphology/stems/*lexc ../shared-smi/src/fst/stems/*lexc |cut -d '!' -f1 |grep ' ;' | cut -d ':' -f1 |rev |cut -d ' ' -f1 |rev |sed 's/+/¢+/g' |sed 's/@/¢@/g'|tr '¢' '\n' | tr '#"' '\n'| egrep '(\+|@)' |sort -u | egrep -v '^(\+|\+%|\+\/\-|\+Cmp\-|\+Cmp%\-|\@0|\@%)$' > lexctags
cat src/fst/morphology/clitics.lexc src/fst/morphology/compounding.lexc src/fst/affixes/*lexc src/fst/morphology/stems/*lexc ../shared-smi/src/fst/stems/*lexc |cut -d '!' -f1 |grep ' ;' | cut -d ':' -f1 |rev |cut -d ' ' -f1 |rev |sed 's/+/¢+/g' |sed 's/@/¢@/g'|tr '¢' '\n' | tr '#"' '\n'| egrep '(\+|@)' |sort -u | egrep -v '^(\+|\+%|\+\/\-|\+Cmp\-|\+Cmp%\-|\@0|\@%|\@%%)$' > lexctags

cat src/fst/morphology/root.lexc |cut -d '!' -f1 |cut -d ':' -f1 |sed 's/+/¢+/g'|sed 's/@/¢@/g' |tr '¢' '\n' | egrep '(\+|@)' |tr -d ' ' | tr -d '\t'|sort -u > roottags

Expand Down

2 comments on commit 2fb16ac

@snomos
Copy link
Member

@snomos snomos commented on 2fb16ac Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flammie kan du sjå på det?

@flammie
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mestparten er sikkert fikset i giellalt/giella-core@42ca063

Please sign in to comment.