Giter Club home page Giter Club logo

kshingle's Introduction

Software packages for the Evidence project (2020-2023)

The DFG project "Evidence" (433249742) ran from 2020 till Jul. 2023 at BBAW. The following software packages are maintained by @ulf1 without compensations since Aug. 2023.

Feature Preprocessing:

Best-Worst Scaling

Javascript

kshingle's People

Contributors

ulf1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nainesh-20

kshingle's Issues

numpy warning

cews.py:528: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of 
lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 
'dtype=object' when creating the ndarray.

Rename VOCAB to TOKENLIST

Why?
The variable name VOCAB is misleading since MWEs (Phrases) are used (e.g. Mikolov seminal paper), and subwords are used in modern NNs (e.g. BERT).

TODO

  • rename functions
  • rename variable name
  • check docstr
  • check README

Set `memo` dictionary with start values

Examples

  • Alphabet, 2-shingle, ..., k-shingle
  • alle Worttoken
  • Sonderzeichen
  • Abkürzungen
  • NE-Listen

Usage

import kshingle as ks
memo = {k: db[k] for k in ["i.e.", "e.g."]}
memo = ks.cews(db, threshold=0.9, min_count_split=10, max_wildcards=2)

enforce lexicons in vocab

k=1

  • any unicode utf-8 character
  • A-Za-z0-9
  • chinese symbols
  • punctations
  • ...

k>=2

  • syllables
  • morphemes
  • words (e.g. dictionaries)
  • multi-words (e.g. NE lists)
  • end of word A and start of word B
  • word n-grams

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.