GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Andreas K (yacc143@mastodon.social)'s status on Monday, 17-Aug-2026 01:14:12 JSTAndreas KAndreas K
    in reply to

    ```
    language = langdect(text)
    if language == "UN": language = language_default
    ```
    You might wonder what the language_default is:
    - you either ask the user.
    - you use the dominant language the user used to post in the past.

    Basically we used this with the first option for datasets of texts (don't ask, many datasets, many texts, many countries, oddest quality standards), and it works surprisingly well on short texts (title/subjects).

    In conversationabout 2 months ago from gnusocial.jppermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.