Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. LanguageTool
  3. N-grams are not used?

N-grams are not used?

Scheduled Pinned Locked Moved Solved LanguageTool
3 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeitrechnen
    wrote on last edited by
    #1

    Before I installed the German n-gram data set the API responded to a check request with source = +fallback

    "language": {
        "name": "German (Germany)",
        "code": "de-DE",
        "detectedLanguage": {
          "name": "German (Germany)",
          "code": "de-DE",
          "confidence": 0.99999934,
          "source": "+fallback"
        }
      }
    

    Then I installed the data set and checked the .env file: Data set is installed and path is correct. After restarting the app I made the same request again and expected "ngram" as the source. At least this is the result when I make a request here: https://languagetool.org/http-api/swagger-ui/#!/default/post_check

    Does this mean the n-gram data set is not used in my installation?

    girishG 1 Reply Last reply
    0
    • Z zeitrechnen

      Before I installed the German n-gram data set the API responded to a check request with source = +fallback

      "language": {
          "name": "German (Germany)",
          "code": "de-DE",
          "detectedLanguage": {
            "name": "German (Germany)",
            "code": "de-DE",
            "confidence": 0.99999934,
            "source": "+fallback"
          }
        }
      

      Then I installed the data set and checked the .env file: Data set is installed and path is correct. After restarting the app I made the same request again and expected "ngram" as the source. At least this is the result when I make a request here: https://languagetool.org/http-api/swagger-ui/#!/default/post_check

      Does this mean the n-gram data set is not used in my installation?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @zeitrechnen not sure what source means above but you can check with the example strings at https://dev.languagetool.org/finding-errors-using-n-gram-data .

      With n-grams:

      Bitte prüfen Sie, ob ‚Meditation‘ (spirituelle Übung) hier das richtige Wort ist anstelle von ‚Mediation‘ (Verfahren zur Konfliktlösung).

      Without n-grams:

      You will see an error "ngram index dir /app/data/ngrams/de not found for German" and also no warning as above

      Z 1 Reply Last reply
      0
      • girishG girish

        @zeitrechnen not sure what source means above but you can check with the example strings at https://dev.languagetool.org/finding-errors-using-n-gram-data .

        With n-grams:

        Bitte prüfen Sie, ob ‚Meditation‘ (spirituelle Übung) hier das richtige Wort ist anstelle von ‚Mediation‘ (Verfahren zur Konfliktlösung).

        Without n-grams:

        You will see an error "ngram index dir /app/data/ngrams/de not found for German" and also no warning as above

        Z Offline
        Z Offline
        zeitrechnen
        wrote on last edited by
        #3

        @girish Many thanks for the link and the example. Then n-gram is used correctly on my server!

        1 Reply Last reply
        1
        • nebulonN nebulon marked this topic as a question on
        • nebulonN nebulon has marked this topic as solved on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search