Interface MachineLearningService
-
- All Known Implementing Classes:
MachineLearningServiceImpl
public interface MachineLearningService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
generateDatasetForAwsComprehend(java.lang.String filePath, java.lang.String langCode, java.lang.String targetDb, java.lang.String targetCollection, java.lang.Boolean isAbsolutePath)
This method automatically generate a dataset from existing list of termsvoid
generateTranslationsForLanguage(java.lang.String fromLangIsoCode, java.lang.String toLangIsoCode)
This method generates new database entities for new language.java.util.Map<java.lang.String,java.lang.Object>
recognizeAttributesForSellerSku(java.util.ArrayList<java.lang.String> urls, java.lang.String sellerSkuType, java.lang.Boolean isAbsolutePath)
This method is working with AWS and it automatically does a recognition a seller sku object from filesvoid
translateDatabaseForLanguage(java.lang.String fromLangIsoCode, java.lang.String toLangIsoCode, java.lang.String targetDb, java.lang.String targetCollection, java.util.ArrayList<java.lang.String> fieldNames)
This method generates new database entities for new language.
-
-
-
Method Detail
-
recognizeAttributesForSellerSku
java.util.Map<java.lang.String,java.lang.Object> recognizeAttributesForSellerSku(java.util.ArrayList<java.lang.String> urls, java.lang.String sellerSkuType, java.lang.Boolean isAbsolutePath)
This method is working with AWS and it automatically does a recognition a seller sku object from files- Parameters:
urls
- path of file which will be parsedsellerSkuType
- type of SellerSKUisAbsolutePath
- this is a switcher for the url construction- Returns:
- it returns a SellerSKU
-
generateDatasetForAwsComprehend
void generateDatasetForAwsComprehend(java.lang.String filePath, java.lang.String langCode, java.lang.String targetDb, java.lang.String targetCollection, java.lang.Boolean isAbsolutePath)
This method automatically generate a dataset from existing list of terms- Parameters:
filePath
- the text file with the list of termslangCode
- language codetargetDb
- the database which will be used to save a datasettargetCollection
- the collection which will be used to save a datasetisAbsolutePath
- this is a switcher for the url construction
-
generateTranslationsForLanguage
void generateTranslationsForLanguage(java.lang.String fromLangIsoCode, java.lang.String toLangIsoCode)
This method generates new database entities for new language.- Parameters:
fromLangIsoCode
- the language id which will be used as referencetoLangIsoCode
- the language id which will be used for translation entity generation
-
translateDatabaseForLanguage
void translateDatabaseForLanguage(java.lang.String fromLangIsoCode, java.lang.String toLangIsoCode, java.lang.String targetDb, java.lang.String targetCollection, java.util.ArrayList<java.lang.String> fieldNames)
This method generates new database entities for new language.- Parameters:
fromLangIsoCode
- the language id which will be used as referencetoLangIsoCode
- the language id which will be used for translation entity generationtargetDb
- the database which will be used to translatetargetCollection
- the collection which will be used to translatefieldNames
- the list of fields which should be translated
-
-