Skip to content

Commit 30822c4

Browse files
committed
MindReader ngrams for major languages
1 parent 5a00621 commit 30822c4

93 files changed

Lines changed: 152 additions & 19 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/build-ngrams.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import java.nio.file.Files
2+
13
ext.generateNgramsMetadata = { definitionsInputDir, dictionariesInputDir, iconsDir, ngramsInputDir, ngramsMetaDir ->
24
def errorStream = fileTree(dir: definitionsInputDir).getFiles().parallelStream().map { definition ->
35
if (!definition.name.endsWith("yml")) {

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ tasks.register('buildDefinition') {
3434

3535
tasks.register('buildDictionaryDownloads') {
3636
inputs.dir LANGUAGES_INPUT_DIR
37-
outputs.dir DICTIONARIES_DOWNLOAD_DIR
3837
outputs.dir DICTIONARY_META_OUTPUT_DIR
38+
outputs.files(fileTree(DICTIONARIES_DOWNLOAD_DIR) { include '**/*.zip'; exclude '**/*ngrams.zip' })
3939

4040
dependsOn validateLanguages
4141
mustRunAfter validateLanguages
@@ -79,11 +79,11 @@ tasks.register('copyNgramsToAssets', Copy) {
7979

8080

8181
tasks.register('copyNgramsToDownloads', Copy) {
82-
from NGRAMS_INPUT_DIR
82+
from NGRAMS_INPUT_DIR`
8383
include '**/*ngrams.zip'
8484
into DICTIONARIES_DOWNLOAD_DIR
8585
dependsOn generateNgramsMeta
86-
mustRunAfter generateNgramsMeta, copyDownloadsToAssets, buildDictionaryDownloads
86+
mustRunAfter generateNgramsMeta, copyDownloadsToAssets
8787
}
8888

8989

app/languages/ngrams/ar-ngrams.zip

34.1 KB
Binary file not shown.

app/languages/ngrams/ca-ngrams.zip

24.3 KB
Binary file not shown.

app/languages/ngrams/cz-ngrams.zip

48.4 KB
Binary file not shown.

app/languages/ngrams/da-ngrams.zip

58.9 KB
Binary file not shown.

app/languages/ngrams/de-ngrams.zip

60.3 KB
Binary file not shown.

app/languages/ngrams/es-ngrams.zip

35.6 KB
Binary file not shown.

app/languages/ngrams/et-ngrams.zip

42.1 KB
Binary file not shown.

app/languages/ngrams/fa-ngrams.zip

30.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)