@Test public void encodeImplSentenceTest() throws IOException { INDArray array = skipthoughtRESTEncoder.encode(dummySentence); assertThat(array.shape(), equalTo(dummyShape)); verify(skipthoughtRESTEncoder, times(1)).encodeImpl(eq(DUMMY_SENTENCE)); verify(skipthoughtRESTEncoder, times(1)).encodeValue(eq(DUMMY_SENTENCE)); }
@Override public INDArray encodeImpl(String word) throws IOException { return encodeValue(word); }
SkipthoughtRESTEncoder extends SimpleRESTEncoder { @Override public INDArray encodeImpl(String word) throws IOException { return encodeValue(word); } }
SkipthoughtRESTEncoder extends SimpleRESTEncoder { @Override public INDArray encodeImpl(String word) throws IOException { return encodeValue(word); } protected  SkipthoughtRESTEncoder();  SkipthoughtRESTEncoder(RESTAdapter restAdapter);  SkipthoughtRESTEncoder(RESTAdapter restAdapter, String vectorIdentifier); }
SkipthoughtRESTEncoder extends SimpleRESTEncoder { @Override public INDArray encodeImpl(String word) throws IOException { return encodeValue(word); } protected  SkipthoughtRESTEncoder();  SkipthoughtRESTEncoder(RESTAdapter restAdapter);  SkipthoughtRESTEncoder(RESTAdapter restAdapter, String vectorIdentifier); static SkipthoughtRESTEncoder create(String domain, int port); static SkipthoughtRESTEncoder create(String domain, int port, String vectorIdentifier); static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout); static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout, String vectorIdentifier); @Override INDArray encodeImpl(String word); @Override INDArray encodeImpl(Span span); @Override void encodeEachImpl(Sentence input); @Override void encodeEachImpl(Document input); @Override void encodeEachImpl(Collection<Document> docs); }
SkipthoughtRESTEncoder extends SimpleRESTEncoder { @Override public INDArray encodeImpl(String word) throws IOException { return encodeValue(word); } protected  SkipthoughtRESTEncoder();  SkipthoughtRESTEncoder(RESTAdapter restAdapter);  SkipthoughtRESTEncoder(RESTAdapter restAdapter, String vectorIdentifier); static SkipthoughtRESTEncoder create(String domain, int port); static SkipthoughtRESTEncoder create(String domain, int port, String vectorIdentifier); static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout); static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout, String vectorIdentifier); @Override INDArray encodeImpl(String word); @Override INDArray encodeImpl(Span span); @Override void encodeEachImpl(Sentence input); @Override void encodeEachImpl(Document input); @Override void encodeEachImpl(Collection<Document> docs);  }