Tag:Glossary

  • Extracting words from English textbooks and making new word lists

    Time:2021-7-13

    Extracting words from English textbooks and making new word lists The textbook is broken down into words Under VIM: Cut all text by non English characters :%s/\W/\r/g Delete duplicate words and sort them :sort u Delete the word section with numbers :g/\d/d Look up English dictionary to make word list Python import pandas as pd […]

  • Li buckle’s diary on March 17, 2020

    Time:2020-5-30

    From today on, I will keep a record every day and try to catch up with more interesting questions! Powerbuckle 1160: spelling words Title Link: https://leetcode-cn.com/problems/find-words-that-can-be-formed-by-characters Title stem: I’ll give you a vocabulary (string array) words and an alphabet (string) chars. If you can spell a word (string) in words with “letters” (characters) in chars, […]

  • Tensorflow implementation of skip gram

    Time:2020-4-14

    Word 2 VEC model has two forms, skip gram and cbow.skip-gramPredict the context based on the target, andcbowPredict the target according to the context.This paper mainly introduces the implementation of skip gram model based on negative sampling using tensorflow. The main codes are as follows, def build_model(BATCH_SIZE, VOCAB_SIZE, EMBED_SIZE, NUM_SAMPLED, NUM_TRUE=1): ”’ Build the model […]