-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Getting the correct data into an array so that it reads correctly... @unimatrixdoc do you think you might help me solve this problem? give me a call and I can talk you through it.
on lines 82 through 101 of Dependencies/wikipedia-process.bash
# For each item/line in Wiki_languages find out if the line already exists in $LANGUAGE_LIST_FILE and if not append it.
for i in $(cat $WIKI_LANGUAGES);do
grep -Fxq "$i" $LANGUAGE_LIST_FILE || echo "$i" >> $LANGUAGE_LIST_FILE #There is a bug here and I can not seem to pass data into this$LANGUAGE_LIST_FILE.
grep -Fxq "$i" $CORPORA_LANGUAGES || echo "$i" >> $CORPORA_LANGUAGES
done
# Set the Variables.
#turn the list into a long list (array) with out new lines instead of a tall list
WIKI_LANGUAGESString=$(cat $WIKI_LANGUAGES | tr "\n" " ")
WIKI_LANGUAGES_ARRAY=($WIKI_LANGUAGESString)
# This section needs to be modified and allow the arangement of info
# to be corpus by type: Wikpedia/James or Language Navajo/ibgo
echo "INFO: It looks like we were able to extract ${#WIKI_LANGUAGES_ARRAY[@]} Wikipedia based corpora." #There is a bug here and I can\'t seem to find out why the data is not being passed correctly. The same thing is happening in James.
echo " Including the following languages: ${WIKI_LANGUAGES_ARRAY[*]}"
echo
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels