@@ -755,6 +755,116 @@ public TextEmbeddingResponse TextEmbedding(RosetteFile file)
755755 return Process < TextEmbeddingResponse > ( file ) ;
756756 }
757757
758+ /// <summary>SemanticVectors
759+ /// <para>
760+ /// (POST)SemanticVectors Endpoint: Returns an averaged text vector of the input text.
761+ /// </para>
762+ /// </summary>
763+ /// <param name="content">(string, optional): Input to process (JSON string or base64 encoding of non-JSON string)</param>
764+ /// <param name="language">(string, optional): Language: ISO 639-3 code (ignored for the /language endpoint)</param>
765+ /// <param name="contentType">(string, optional): not used at time</param>
766+ /// <param name="contentUri">(string, optional): URI to accessible content (content and contentUri are mutually exclusive)</param>
767+ /// <param name="genre">(string, optional): genre to categorize the input data</param>
768+ /// <returns>
769+ /// A SemanticVectorsResponse:
770+ /// Contains a single vector of floating point numbers for your input, known as a text embedding.
771+ /// Among other uses, a text embedding enables you to calculate the similarity between two documents or two words.
772+ /// The text embedding represents the relationships between words in your document in the semantic space.
773+ /// The semantic space is a multilingual network that maps the input based on the words and their context.
774+ /// Words with similar meanings have similar contexts, and Rosette maps them close to each other
775+ /// </returns>
776+ public SemanticVectorsResponse SemanticVectors ( string content = null , string language = null , string contentType = null , string contentUri = null , string genre = null )
777+ {
778+ _uri = "semantics/vector" ;
779+ return Process < SemanticVectorsResponse > ( content , language , contentType , contentUri , genre ) ;
780+ }
781+
782+ /// <summary>SemanticVectors
783+ /// <para>
784+ /// (POST)SemanticVectors Endpoint: Returns an averaged text vector of the input text.
785+ /// </para>
786+ /// </summary>
787+ /// <param name="dict">Dictionary<object, object>: Dictionary containing parameters as (key,value) pairs</param>
788+ /// <returns>
789+ /// A SemanticVectorsResponse:
790+ /// Contains a single vector of floating point numbers for your input, known as a text embedding.
791+ /// Among other uses, a text embedding enables you to calculate the similarity between two documents or two words.
792+ /// The text embedding represents the relationships between words in your document in the semantic space.
793+ /// The semantic space is a multilingual network that maps the input based on the words and their context.
794+ /// Words with similar meanings have similar contexts, and Rosette maps them close to each other
795+ /// </returns>
796+ public SemanticVectorsResponse SemanticVectors ( Dictionary < object , object > dict )
797+ {
798+ _uri = "semantics/vector" ;
799+ return GetResponse < SemanticVectorsResponse > ( JsonConvert . SerializeObject ( AppendOptions ( dict ) ) ) ;
800+ }
801+
802+ /// <summary>SemanticVectors
803+ /// <para>
804+ /// (POST)SemanticVectors Endpoint: Returns an averaged text vector of the input text.
805+ /// </para>
806+ /// </summary>
807+ /// <param name="file">RosetteFile: RosetteFile Object containing the file (and possibly options) to upload</param>
808+ /// <returns>
809+ /// A SemanticVectorsResponse:
810+ /// Contains a single vector of floating point numbers for your input, known as a text embedding.
811+ /// Among other uses, a text embedding enables you to calculate the similarity between two documents or two words.
812+ /// The text embedding represents the relationships between words in your document in the semantic space.
813+ /// The semantic space is a multilingual network that maps the input based on the words and their context.
814+ /// Words with similar meanings have similar contexts, and Rosette maps them close to each other
815+ /// </returns>
816+ public SemanticVectorsResponse SemanticVectors ( RosetteFile file )
817+ {
818+ _uri = "semantics/vector" ;
819+ return Process < SemanticVectorsResponse > ( file ) ;
820+ }
821+
822+ /// <summary>Similar terms
823+ /// <para>
824+ /// (POST)Similar Terms Endpoint: Returns the terms similar to an input term
825+ /// </para>
826+ /// </summary>
827+ /// <param name="content">(string, optional): Input to process (JSON string or base64 encoding of non-JSON string)</param>
828+ /// <param name="language">(string, optional): Language: ISO 639-3 code (ignored for the /language endpoint)</param>
829+ /// <param name="contentType">(string, optional): not used at time</param>
830+ /// <param name="contentUri">(string, optional): URI to accessible content (content and contentUri are mutually exclusive)</param>
831+ /// <param name="genre">(string, optional): genre to categorize the input data</param>
832+ /// <returns>SimilarTermsResponse containing the results of the request.
833+ /// The response contains a mapping of language to similar terms.
834+ /// </returns>
835+ public SimilarTermsResponse SimilarTerms ( string content = null , string language = null , string contentType = null , string contentUri = null , string genre = null ) {
836+ _uri = "semantics/similar" ;
837+ return Process < SimilarTermsResponse > ( content , language , contentType , contentUri , genre ) ;
838+ }
839+
840+ /// <summary>Similar terms
841+ /// <para>
842+ /// (POST)Similar Terms Endpoint: Returns the terms similar to an input term
843+ /// </para>
844+ /// </summary>
845+ /// <param name="dict">Dictionary<object, object>: Dictionary containing parameters as (key,value) pairs</param>
846+ /// <returns>SimilarTermsResponse containing the results of the request.
847+ /// The response contains a mapping of language to similar terms.
848+ /// </returns>
849+ public SimilarTermsResponse SimilarTerms ( Dictionary < object , object > dict ) {
850+ _uri = "semantics/similar" ;
851+ return GetResponse < SimilarTermsResponse > ( JsonConvert . SerializeObject ( AppendOptions ( dict ) ) ) ;
852+ }
853+
854+ /// <summary>Similar terms
855+ /// <para>
856+ /// (POST)Similar Terms Endpoint: Returns the terms similar to an input term
857+ /// </para>
858+ /// </summary>
859+ /// <param name="file">RosetteFile: RosetteFile Object containing the file (and possibly options) to upload</param>
860+ /// <returns>SimilarTermsResponse containing the results of the request.
861+ /// The response contains a mapping of language to similar terms.
862+ /// </returns>
863+ public SimilarTermsResponse SimilarTerms ( RosetteFile file ) {
864+ _uri = "semantics/similar" ;
865+ return Process < SimilarTermsResponse > ( file ) ;
866+ }
867+
758868 /// <summary>SyntaxDependencies
759869 /// <para>
760870 /// (POST)SyntaxDependencies Endpoint: Return the syntactic dependencies of the input text.
0 commit comments