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
8
votes
5 answers

Embed Python interpreter in a Python application

I'm looking for a way to ship the Python interpreter with my application (also written in Python), so that it doesn't need to have Python installed on the machine. I searched Google and found a bunch of results about how to embed the Python…
mdeous
  • 17,513
  • 7
  • 56
  • 60
8
votes
4 answers

Embedding HTML in embedded SVG in HTML?

It's allowed to embed SVG in HTML... Hmmm....
bopjesvla
  • 755
  • 4
  • 15
  • 22
7
votes
3 answers

Embedding Mono in Delphi Win32

Does anyone know the specifics of how to embed the Mono runtime in a Delphi Win32 application? The official documentations is not very helpful with regards to the Win32 environment (www.mono-project.com/Embedding_Mono). Update: I am very familiar…
David Taylor
  • 2,021
  • 21
  • 25
7
votes
3 answers

Python embedding with threads -- avoiding deadlocks?

Is there any way to embed python, allow callbacks from python to C++, allowing the Pythhon code to spawn threads, and avoiding deadlocks? The problem is this: To call into Python, I need to hold the GIL. Typically, I do this by getting the main…
Jon Watte
7
votes
1 answer

How can I use batch embeddings using OpenAI's API?

I am using the OpenAI API to get embeddings for a bunch of sentences. And by a bunch of sentences, I mean a bunch of sentences, like thousands. Is there a way to make it faster or make it do the embeddings concurrently or something? I tried Looping…
7
votes
1 answer

Neo4j Standalone vs Embedded server?

I want to know what is the difference between these two implementations of neo4j. Of-course names of both techniques is self-explanatory,but still what are the main differences? What factors should be considered in deciding which technique to use in…
codecool
  • 5,886
  • 4
  • 29
  • 40
7
votes
2 answers

(Embedding Mono) Parallel activation of domains

I'm wondering if it's possible to activate multiple Mono domains and execute them in parallel from native code: I use the following code to activate a domain: ///Create a new domain. m_domain = mono_domain_create(); ///Activate the…
Ghassen Hamrouni
  • 3,138
  • 2
  • 20
  • 31
7
votes
1 answer

Masking zero inputs in LSTM in keras without using embedding

I am training an LSTM in Keras: iclf = Sequential() iclf.add(Bidirectional(LSTM(units=10, return_sequences=True, recurrent_dropout=0.3), input_shape=(None,2048))) iclf.add(TimeDistributed(Dense(1, activation='sigmoid'))) The input to each cell is a…
Hossein
  • 2,041
  • 1
  • 16
  • 29
7
votes
4 answers

Embedding a Web page in a C# Window

I want to create a simple C# Window which displays the contents of a webpage. Is this possible ? Eg. (what I am trying to do is) csharp.window.loadUrl("http://www.google.com")
Prakash Raman
  • 13,319
  • 27
  • 82
  • 132
7
votes
4 answers

Why are word embedding actually vectors?

I am sorry for my naivety, but I don't understand why word embeddings that are the result of NN training process (word2vec) are actually vectors. Embedding is the process of dimension reduction, during the training process NN reduces the 1/0 arrays…
com
  • 2,606
  • 6
  • 29
  • 44
7
votes
5 answers

Go reflection with interface embedded in struct - how to detect "real" functions?

The situation I have now is the same as was asked about in this thread: Meaning of a struct with embedded anonymous interface? type A interface { Foo() string } type B struct { A bar string } Idiomatically, coming from a…
BadZen
  • 4,083
  • 2
  • 25
  • 48
7
votes
1 answer

Embedding YouTube video with Autoplay AND starting video at a particular time

I was wondering if it is possible to autoplay an embedded YouTube video AND also have the video start at a certain point? Any help is appreciated.
7
votes
1 answer

Embedding Python: No module named site

I'm embedding python in a C application. I have downloaded the standard python dist and placed it relative to program and used this to link & build the C application. This works fine on my devel machine and the application runs against this version…
jramm
  • 6,415
  • 4
  • 34
  • 73
7
votes
3 answers

How to convert a C string (char array) into a Python string when there are non-ASCII characters in the string?

I have embedded a Python interpreter in a C program. Suppose the C program reads some bytes from a file into a char array and learns (somehow) that the bytes represent text with a certain encoding (e.g., ISO 8859-1, Windows-1252, or UTF-8). How do…
Vebjorn Ljosa
  • 17,438
  • 13
  • 70
  • 88
7
votes
1 answer

lua_open returns null using luaJIT

Using the recent luaJIT lua_open returns null. This does not happen with the regular lua library. lua_State *L = lua_open(); std::cout << L << std::endl; Output: 0x0 How can I get luaJIT to work? SSCCE: #include #include…
Appleshell
  • 7,088
  • 6
  • 47
  • 96