Questions tagged [embedding]

An embedding is one instance of some structure contained within another instance, such as a group that is a subgroup.

An embedding is one instance of some structure contained within another instance, such as a group that is a subgroup.

Links:

1356 questions
9
votes
1 answer

BERT document embedding

I am trying to do document embedding using BERT. The code I use is a combination of two sources. I use BERT Document Classification Tutorial with Code, and BERT Word Embeddings Tutorial. Below is the code, I feed the first 510 tokens of each…
MRM
  • 1,099
  • 2
  • 12
  • 29
9
votes
5 answers

FastText - Cannot load model.bin due to C++ extension failed to allocate the memory

I'm trying to use the FastText Python API https://pypi.python.org/pypi/fasttext Although, from what I've read, this API can't load the newer .bin model files at https://github.com/facebookresearch/fastText/blob/master/pretrained-vectors.md as…
Filipe Aleixo
  • 3,924
  • 3
  • 41
  • 74
9
votes
2 answers

How to use the Embedding Layer for Recurrent Neural Network (RNN) in Keras

I'm rather new to Neural Networks and the Keras Library and I'm wondering how I can use the Embedding Layer as described here to mask my input data from a 2D tensor to a 3D tensor for a RNN. Say my timeseries data looking as follows (with an…
Kito
  • 1,375
  • 4
  • 17
  • 37
9
votes
4 answers

Embed a scripting language inside Go

Is it possible to embed a language inside Go? I need it to create plugins inside my application.
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
9
votes
1 answer

Embedding v8 in android app

I want to add some scripting support to my android application. My app is not web based, it is just a common app, written in Java. I need to choose scripting language and its interpreter implementation for embedding. As for language I prefer…
Meteorite
  • 903
  • 1
  • 9
  • 13
9
votes
4 answers

pygtk how to embed external application within my pygtk GUI

I'm desiging a pygtk GUI and want to embed an external application into it. Does anyone have any idea how this can be done?
M0E-lnx
  • 717
  • 10
  • 24
8
votes
1 answer

Recommendation to embed Haskell as script engine in iOS apps on ARM?

I tried to compiling Haskell into an iOS app a few months ago. Unfortunately the only stable/maintained implementation that I could find was GHC, so I tried some kind of cross-compilation, but failed because of absence of RTS for ARM/iOS. I realized…
eonil
  • 83,476
  • 81
  • 317
  • 516
8
votes
1 answer

Faster way to do multiple embeddings in PyTorch?

I'm working on a torch-based library for building autoencoders with tabular datasets. One big feature is learning embeddings for categorical features. In practice, however, training many embedding layers simultaneously is creating some slowdowns. I…
alliedtoasters
  • 420
  • 5
  • 13
8
votes
3 answers

How to evaluate Word2Vec model

Hi have my own corpus and I train several Word2Vec models on it. What is the best way to evaluate them one against each-other and choose the best one? (Not manually obviously - I am looking for various measures). It worth noting that the embedding…
oren_isp
  • 729
  • 1
  • 7
  • 22
8
votes
9 answers

Integrating a script language into a C++ application

I'm really new to C++ and I've come across a problem I've not been able to solve by reading documentations. I want to embed a script language into my c++ application. That language could be javascript, lua or preferably python. I'm not looking for…
Robin
  • 1,322
  • 1
  • 13
  • 23
8
votes
7 answers

Is it good style to call bash commands within a Python script using os.system("bash code")?

I was wondering whether or not it is considered a good style to call bash commands within a Python script using os.system(). I was also wondering whether or not it is safe to do so as well. I know how to implement some of the functionality I need in…
JoeB
  • 91
  • 1
  • 3
8
votes
2 answers

How to build JavaScriptCore for iOS device?

I've downloaded Webkit nightly build. I open JavaScriptCore and built it. Compilation done without any error. But the output was a Framework contains only OS X binary. I tried unchecking 'build active architecture only' but only desktop…
eonil
  • 83,476
  • 81
  • 317
  • 516
8
votes
1 answer

Embedding when to use pointer

When I want to embed a struct within another struct, should I use a pointer or value? For example type Job struct { Command string *log.Logger } or type Job struct { Command string log.Logger }
softshipper
  • 32,463
  • 51
  • 192
  • 400
8
votes
6 answers

why does firebug debugging sometimes work and sometimes not?

I want to debug a javascript file that is embedded in the HEAD element. I navigate to the site, see the code, and make a breakpoint: (source: deviantsart.com) But when I click on Reload, the script disappears and it doesn't stop at the…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
8
votes
6 answers

embedding pascal

Is anyone aware of a Pascal interpreter/compiler which is embeddable in C++ (or anything else other than Pascal) applications? I am cloning (for lack of a better word) an application which uses an Object-Pascal compatible scripting language and…
Sam P
  • 131
  • 3