Skip to content

Commit 4a86839

Browse files
committed
refactor: regenerate vis rec V4
1 parent 3f582d1 commit 4a86839

File tree

6 files changed

+1
-192
lines changed

6 files changed

+1
-192
lines changed

Scripts/Services/VisualRecognition/V4/Model/BaseCollectionTrainingStatus.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

Scripts/Services/VisualRecognition/V4/Model/BaseCollectionTrainingStatus.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Scripts/Services/VisualRecognition/V4/Model/BaseError.cs

Lines changed: 0 additions & 72 deletions
This file was deleted.

Scripts/Services/VisualRecognition/V4/Model/BaseError.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Tests/DiscoveryV1IntegrationTests.cs

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ public IEnumerator TestFederatedQuery()
850850
Assert.IsNull(error);
851851
},
852852
environmentId: environmentId,
853+
collectionIds: collectionId,
853854
naturalLanguageQuery: "When did Watson win Jeopardy",
854855
passages: true,
855856
count: 10,
@@ -916,37 +917,6 @@ public IEnumerator TestQuery()
916917
}
917918
#endregion
918919

919-
#region QueryEntities
920-
//[UnityTest, Order(28)]
921-
public IEnumerator TestQueryEntities()
922-
{
923-
Log.Debug("DiscoveryServiceV1IntegrationTests", "Attempting to QueryEntities...");
924-
QueryEntitiesResponse queryEntitiesResponse = null;
925-
QueryEntitiesEntity entity = new QueryEntitiesEntity()
926-
{
927-
Text = "Jeopardy"
928-
};
929-
930-
service.QueryEntities(
931-
callback: (DetailedResponse<QueryEntitiesResponse> response, IBMError error) =>
932-
{
933-
Log.Debug("DiscoveryServiceV1IntegrationTests", "QueryEntities result: {0}", response.Response);
934-
queryEntitiesResponse = response.Result;
935-
Assert.IsNotNull(queryEntitiesResponse);
936-
Assert.IsNull(error);
937-
},
938-
environmentId: environmentId,
939-
collectionId: collectionId,
940-
entity: entity,
941-
feature: "disambiguate",
942-
count: 10
943-
);
944-
945-
while (queryEntitiesResponse == null)
946-
yield return null;
947-
}
948-
#endregion
949-
950920
#region QueryNotices
951921
[UnityTest, Order(29)]
952922
public IEnumerator TestQueryNotices()
@@ -974,38 +944,6 @@ public IEnumerator TestQueryNotices()
974944
}
975945
#endregion
976946

977-
#region QueryRelations
978-
//[UnityTest, Order(30)]
979-
public IEnumerator TestQueryRelations()
980-
{
981-
Log.Debug("DiscoveryServiceV1IntegrationTests", "Attempting to QueryRelations...");
982-
QueryRelationsResponse queryRelationsResponse = null;
983-
List<QueryRelationsEntity> entities = new List<QueryRelationsEntity>()
984-
{
985-
new QueryRelationsEntity()
986-
{
987-
Text = "Jeopardy"
988-
}
989-
};
990-
service.QueryRelations(
991-
callback: (DetailedResponse<QueryRelationsResponse> response, IBMError error) =>
992-
{
993-
Log.Debug("DiscoveryServiceV1IntegrationTests", "QueryRelations result: {0}", response.Response);
994-
queryRelationsResponse = response.Result;
995-
Assert.IsNotNull(queryRelationsResponse);
996-
Assert.IsNull(error);
997-
},
998-
environmentId: environmentId,
999-
collectionId: collectionId,
1000-
entities: entities,
1001-
count: 10
1002-
);
1003-
1004-
while (queryRelationsResponse == null)
1005-
yield return null;
1006-
}
1007-
#endregion
1008-
1009947
#region AddTrainingData
1010948
[UnityTest, Order(31)]
1011949
public IEnumerator TestAddTrainingData()

Tests/VisualRecognitionV4IntegrationTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public class VisualRecognitionV4IntegrationTests
3939
private string negativeExamplesFilepath;
4040
private string giraffeImageFilepath;
4141
private string turtleImageFilepath;
42-
private string turtleImageContentType = "image/jpeg";
4342
private string imageMetadataFilepath;
44-
private string classifierName = "unity-sdk-classifier-safe-to-delete";
4543
private string giraffeCollectionId = "d31d6534-3458-40c4-b6de-2185a5f3cbe4";
4644
private string giraffeClassname = "giraffe";
4745
private string turtleCollectionId = "760c8625-a456-4b73-b71d-d1619a6daf84";

0 commit comments

Comments
 (0)