Importing libraries doesn't work

I i’m trying to use deeplearning4j, but it just doesn’t work.

//import org.deeplearning4j.text.sentenceiterator.BasicLineIterator;
//import org.deeplearning4j.text.sentenceiterator.SentenceIterator;
//import org.deeplearning4j.text.tokenization.tokenizer.preprocessor.CommonPreprocessor;
//import org.deeplearning4j.text.tokenization.tokenizerfactory.DefaultTokenizerFactory;
//import org.deeplearning4j.text.tokenization.tokenizerfactory.TokenizerFactory;
//import org.deeplearning4j.models.word2vec.Word2Vec;
//import org.deeplearning4j.models.word2vec.wordstore.inmemory.InMemoryLookupCache;

None of these imports works

pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>ZCJustStuff</groupId>
  <artifactId>ZCJustStuff</artifactId>
  <version>1.0</version>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <release>17</release>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>papermc</id>
      <url>https://papermc.io/repo/repository/maven-public/</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>io.papermc.paper</groupId>
      <artifactId>paper-api</artifactId>
      <version>1.18.2-R0.1-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency>
	<dependency>
      <groupId>org.deeplearning4j</groupId>
      <artifactId>deeplearning4j-core</artifactId>
      <version>1.0.0-M2.1</version>
      <scope>provided</scope>
	</dependency>
	<dependency>
      <groupId>org.nd4j</groupId>
      <artifactId>nd4j-native-platform</artifactId>
      <version>1.0.0-M2.1</version>
      <scope>provided</scope>
	</dependency>
  </dependencies>
</project>

Yea, it’s a Minecraft plugin. I don’t think that would make any difference.
Can someone help me find the issue why none of the imports in text and models work?

From what I can see, libraries exist, but not “text” and “models”:

@ItsVaidas you’re using scope provided for some reason…I"m not sure what prompted you to do that but please remove that and try again. It appears you’re missing deeplearning4j-nlp as well. Please ensure you add that with the same version.

Dl4j is a lot of smaller libraries under 1 mono repo. You can’t just add 2 dependencies to your project. You need to know what you need and why. If you need more specific help on that front please feel free to ask.

A more general tip for you here is just to use search.maven.org.

You can type fc:org.deeplearning4j.models.word2vec.Word2Vec

or any org. whatever class to get an idea of where a library can be found.