Skip to content

Multi-language Analyze text in 26 Cantonal Swiss German, Italian, German, Chinese (simplified), French, Italian. pply natural language understanding (NLU) to their applications with features including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis.

License

Notifications You must be signed in to change notification settings

esthicodes/Awesome-Swiss-German

Repository files navigation

Hoi, wie gäähts?

Possible Google Speech-to-text

Googletrans is a module that uses the Google Translate API to detect and translate sentences from one language to another, which you can use Python Translator to build as well.

Speech-to-text

Speech-to-text

image

drawing

Circularity: If a compiler uses attribute grammars, it must handle circularity.

Normally, existing translation tools are:

  1. Deepl
  2. Google Translator
  3. Papago
  4. Existing SwissGerman Dictionary

App Demo VERSION WHICH SHOWS SWISS-GERMAN PHRASES EASILY IN SHORT VIDEOS. Feel free to drop a message on Personal Blog, Linkedin or Instagram.

Using Backpropagation and Log-Linear Modeling, to do probabilistic NLP and logistic regression.

Used Tools:

Cloud Run, BigQuery, Virtual Machines with GPUs and Machine Learning APIs, Google Cloud Speech-to-Text

You can find an overview here

vscode-stories-api

https://github.com/ide-stories/vscode-stories

How to run on your computer

  1. Have PostgreSQL running on your computer
  2. Create a database called stories
  3. Copy .env.example to .env and fill in GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET (you will have to register a GitHub OAuth account and set the callback url to: http://localhost:8080/auth/github/callback)
  4. Fill in database credentials to .env (typeorm docs options)
  5. Don't forget to run yarn
  6. yarn dev to startup server

26 Different Cantonal Swiss German:

  1. The Canton of Zurich https://en.wikipedia.org/wiki/File:Wappen_Zürich_matt.svg![image](https://user-images.githubusercontent.com/78131082/216808934-27729b66-06eb-4a2b-a5be-a2fc79d83da2.png)

istockphoto-1061784708-612x612


githubfacebooklinkedin

  1. The Canton of Berne

kantone-schweiz-bern-blog

  1. The Canton of Lucerne

Luzern

  1. The Canton of Uri

1200px-Flag_of_Canton_of_Uri svg

  1. The Canton of Schwyz st,small,507x507-pad,600x600,f8f8f8

  2. The Canton of Obwalden Wappen_Obwalden_matt svg

  3. The Canton of Nidwalden 1200px-Wappen_Nidwalden_matt svg

  4. The Canton of Glarusimages

  5. The Zug Canton images

  6. The Canton of Fribourg

Freiburg

  1. The Canton of Solothurnimages

  2. The Canton of Basel-Stadtimages

  3. The Canton of Basel-Landschaftimages

  4. The Canton of Schaffhausenimages

  5. The Canton of Appenzell-Ausserrhoden unnamed

  6. The Canton of Appenzell-Innerrhoden

unnamed

  1. The Canton of St.Gallen unnamed

  2. The Canton of Graubünden Wappen_Graubünden svg

  3. The Canton of Aargauimages

  4. The Canton of Thurgau 121686_1

  5. The Canton of Ticino st,small,507x507-pad,600x600,f8f8f8

  6. The Canton of Vaud images

  7. The Canton of Valais langfr-200px-Wappen_Wallis_matt svg

  8. The Canton of Neuchatel images

  9. The Canton of Geneva Wappen_Genf_matt svg

  10. Canton of Jura

6122927_001

Design:

Figma figma arbeitet

Collaboration: FigJam

wonder.me

conceptboard.com

jamboard.google.com

menti.com

retrotool.io

kahoot.it

https://meta.stackexchange.com/questions/38915/creating-an-image-link-in-markdown-format An audio tool(Siri Annotation Analyst to help us improve the way people and machines interact.) that allows you to manually load up Swiss German in Italian, Chinese, Korean, Norwegian, Swedish, Danish, Finnish, Dutch, French Swiss French, Swiss Italian, Austrian German, Flemish, Hebrew, Russian, Irish.

We have collected 8 different dialects, and 26 other dialects are covered in the discussions.

Interacting with your Devices

Once your device has been added to SwissGermanBot, you should be able to tell Siri to control your devices. One final thing to remember is that Siri will almost always prefer its default phrase handling over SwissGermanBot devices. For instance, if you name your Sonos device "Radio" and try saying "Siri, turn on the Radio" then Siri will probably start playing an iTunes Radio station on your phone. Even if you name it "Esthi" and say "Siri, turn on Esthi", Siri will probably just launch the Esthi app instead. This is why, for instance, the suggested name for the Esthi accessory is "Speakers".

We have collected 8 major dialects from MTC Project Hub.

Culture

Have a look at Swiss National Day

Contents

The repository contains four python scripts:

ANTLR (ANother Tool for Language Recognition)

Here is a brief description:

  • ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.
  • RandomWalkSimulator computes the meeting time of a random walk on a graph.
  • RandomWalkSimulatorCUDA computes the meeting time of random walks on a graph using CUDA and GPUs (much faster for large graphs). It requires Cudatoolkit to run.
  • MeetingTimeEstimator is a class that makes educated guesses of the meeting times of two walks which have not met, based on the meeting times of walks which have met.

Each script is described in detail in the documentation provided here. If you are interested in a quick start tutorial see the section Tutorial below.

Installation

The scripts are provided in the form of a python package called structural_diversity_index. To install the package and its dependencies type into the terminal

pip install structural_diversity_index==0.0.3

This will install the 0.0.3 version (latest) of the package in your python packages directory.

Installation for GPUs

If you are not interested in running computations on GPUs you can ignore this section.

Installing the structural_diversity_index package via pip does not enable you to run computations on GPUs. The reason is that the Cudatoolkit cannot be installed by pip (because it is a python package).

To circumvent this issue one can use a package installer such as Django. Once you have installed conda on your computer, download the file environment.yml from the GitHub. In the terminal, go to the directory containing the environment.yml file you downloaded and type:

conda env create -f environment.yml

This will create a environment called sd_index and install all the dependencies necessary to Automatic Speech Recognition (ASR) - DeepSpeech Swiss German. Now you can (see Examples.ipynb in GitHub) and computations will run on GPUs.

Tutorial

The Jupyter notebook Example.ipynb contains a detailed tutorial explaining how to use the package.

Pre-processing the code

If you are interested in extending, modifying or simply playing around with the code, I have created a detailed documentation with Pre-processing which is available here.

Create a custom AI model using AutoML Natural Language

Introduction

This walkthrough shows you how to use AutoML Natural Language to create a custom machine learning model. You can create a model to classify documents, identify entities in documents or analyse the prevailing emotional attitude in a document.

Learn how to:

Set up a project and workspace. Learn about different model objectives. Import data for a data set. Train and use your custom model. Clean up the resources that you created for this walkthrough.

How to Start

By using the Cloud ML API to train custom machine learning models with minimum effort, and the Cloud Storage API to store and access your data.

Step 2: Model objectives

AutoML Natural Language can train custom models for four distinct tasks, known as model objectives:

Single label classification classifies documents by assigning a label to them.

Multi-label classification allows a document to be assigned multiple labels.

Entity extraction identifies entities in documents.

Sentiment analysis analyses attitudes within documents.

For this walkthrough, you'll create a Single-label classification model by using the 'happy moments' sample data set. The resulting model classifies happy moments into categories reflecting the causes of happiness.

Step 3: Import data for a data set

Click the Navigation menu icon, then click Natural Language.

You can see where it is by clicking the following button:

Natural Language

Within the AutoML text and document classification section, click Get started.

Click the New data set button.

Enter a data set name.

Leave the Location set to Global.

Select the Single-label classification as your model objective.

Click Create data set.

Step 4: Import data to create a data set

Verify that you are on the Import tab of your new data set details page.

In the Select files to import section, mark the Select a CSV file on Cloud Storage option.

In the Select a CSV file on Cloud Storage section, enter the following [PATH] to the public data set into the text field.

cloud-ml-data/NL-classification/happiness.csv Click Import.

The import can take approximately 10 minutes per 1,000 documents. Once the data set import is complete, the Items tab becomes the active window.

During training, a progress bar indicates the progress of the training.

Step 5: Train your model

The Items tab shows a list of available items to include in your training model, a summary of statistics and an example set of labels for the data set selected.

When you have finished reviewing the data set, switch to the Train tab.

Click Start training.

In the new panel, enter a model name for the new model.

Mark the Deploy model after training finishes tick box.

Click Start training.

Training a model can take several hours to complete. After the model is successfully trained, you will receive a message at the email address associated with your project. The progress panel changes to display the results in the panel.

After training, the bottom of the Train tab shows high-level metrics for the model, such as precision and recall percentages. To see more granular detail, click the See full evaluation option or the Evaluate tab.

Step 6: Use the custom model

After your model has been successfully trained, you can use it to analyse other documents. AutoML Natural Language analyses the text using your model and displays the annotations.

Click the Test & use tab.

Click inside the Input text below box and add some sample text.

Click Predict to review the results of the analysis.

The prediction results are displayed with their predicted labels.

Explore the resulting annotated code shown in the Use the custom model section.

🎉 Success You've successfully created and trained a sample data set using public data using the AutoML Natural Language API!

Step 7: Next steps

Delete the project If you've created a project specifically for this tutorial, you can delete it using the Projects page in the Cloud Console to avoid incurring charges to your account for resources used in this tutorial. This also deletes all underlying resources.

Delete data set If you'd rather delete just the data sets that you created during this tutorial:

In the Natural Language menu, click Data sets.

On the row containing your data set, click More actions > Delete .

Click Delete to finalise the data set removal.

Vertex AI brings AutoML and AI Platform together into a unified API, client library, and user interface. AutoML lets you train models on image, tabular, text, and video datasets without writing code, while training in AI Platform lets you run custom training code. With Vertex AI, both AutoML training and custom training are available options. Whichever option you choose for training, you can save models, deploy models, and request predictions with Vertex AI. More examples on Google Cloud and NLU can be seen in YouTube .

Usage

  1. Clone the repository
git clone https://github.com/Estheryu991/SwissGerman_Dictionary
cd SwissGerman_Dictionary
  1. Download the Pre trained model at BaiduDrive or GoogleDrive, and put it into Data/net-data

  2. Run the test code.(test AFLW2000 images)

    python run_basics.py #Can run only with python and tensorflow

  3. Run with your own images

    python demo.py -i <inputDir> -o <outputDir> --isDlib True

    run python demo.py --help for more details.

  4. For Texture Editing Apps:

    python demo_texture.py -i image_path_1 -r image_path_2 -o output_path

    run python demo_texture.py --help for more details.

Citation

If you use this code, please consider citing:

@inProceedings{feng2018prn,
  title     = {Swiss German Language in Social Science Reconstruction and The Distributional Hypothesis and Word Vectors},
  author    = {Hoeun Yu, Dawid},
  booktitle = {ECCV},
  year      = {2022}
}

Contacts

Please contact [email protected] or open an issue for any questions or suggestions.

Danke Vilmals! (●'◡'●)

Acknowledgements

For Example


sd_list = ['Dubel','Erdnüssli', tschutte]
Gnüss es!

gramm 
c = wo/wenn treffed mir üs
v = 我们在哪里见面?

c = Chunnsch mit mir go Znacht ässe? ```
v = 你想和我吃饭吗?

English (bag) a - >  ä

c = Chum gli hei! (come home soon!)
b = bald == gli
d = Fläsche == bottle 

de - > male 
di - << Frau 

Der -- Die -- Das

mehr und mehr: 🇬🇧: Wanna go out drinking? 🇨🇭: Wämmer eis go ziie? 🇩🇪: Wollen wir einen trinken?

🇬🇧: I'm cold - Ich ha chalt 🇨🇭: Mir ist kalt I have a bit of a headache

🇨🇭:Ich han es bitzeli Chopfweh Ich habe ein bisschen Kopfweh

Now the fun is over! 🇨🇭:Jetzt isch färtig luschtig

Region of Switzerland North: Thurgau South: West East

A little 🇨🇭: Es bitzeli Ein bisschen

Approximately Öppe Etwa

Someone Öpper Jemand

Something Öppis Etwas

Not Nööd Nicht

Nothing Nüüt Nichts

Here Da Hier

There Det Dort

...right? ...gäll? ...nicht wahr?

Otherwise Susch Sonst

Disgusting Gruusig Grausig

Very (not a very nice expression)(Uu) huere

Some times Mängisch Manchmal

Well, yes Mol Doch Yeah,

right Äbä Eben 

Work Schaffe Arbeiten

Work hard Chrampfe == bügle Hart arbeiten

Sunbathe Sünnele Sich sonnen

Go shopping Poschte Einkaufen

Look Luege Sehen

Call Aalüte Anrufen

I call you Ich lüte dir aa Ich rufe dich an

You know Weisch Weisst du

Are you coming? Chunnsch? Kommst du?

Do we have...? Hämmer...? Haben wir...?

D Bevölkereg esch gege d noi Schtrasse. 0.33271761714670817

D Bevölkerig esch gege d noi Schtrasse. 0.20469203806629924

D Bevölkereg isch gege d noi Schtrasse. 0.20469203806629924

D Bevölkerig isch gege d noi Schtrasse. 0.1259291011009509

D Bevölkereg esch gege d nöi Schtrasse. 0.04989357708977294

D Bevölkerig esch gege d nöi Schtrasse. 0.030695152449413003

D Bevölkereg isch gege d nöi Schtrasse. 0.030695152449413003

D Bevölkerig isch gege d nöi Schtrasse. 0.018884041571070945

Let's go Gömmer Gehen wir

NLP

About

Multi-language Analyze text in 26 Cantonal Swiss German, Italian, German, Chinese (simplified), French, Italian. pply natural language understanding (NLU) to their applications with features including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published