@@ -525,6 +525,10 @@ public class Parameters
525
525
/// ISO 639-1 code indicating the language to use in the analysis
526
526
/// </summary>
527
527
public string language { get ; set ; }
528
+ /// <summary>
529
+ /// Sets the maximum number of characters that are processed by the service
530
+ /// </summary>
531
+ public int ? limit_text_characters { get ; set ; }
528
532
}
529
533
530
534
[ fsObject ( Converter = typeof ( FeaturesConverter ) ) ]
@@ -637,19 +641,25 @@ public class EntitiesOptions
637
641
/// <summary>
638
642
/// Maximum number of entities to return
639
643
/// </summary>
640
- public int limit { get ; set ; }
644
+ public int ? limit { get ; set ; }
641
645
/// <summary>
642
646
/// Enter a custom model ID to override the standard entity detection model
643
647
/// </summary>
644
648
public string model { get ; set ; }
645
649
/// <summary>
646
650
/// Set this to true to return sentiment information for detected entities
647
651
/// </summary>
648
- public bool sentiment { get ; set ; }
652
+ public bool ? sentiment { get ; set ; }
649
653
/// <summary>
650
654
/// Set this to true to analyze emotion for detected keywords
651
655
/// </summary>
652
- public bool emotion { get ; set ; }
656
+ public bool ? emotion { get ; set ; }
657
+ /// <summary>
658
+ /// Set this to true to return locations of entity mentions
659
+ /// </summary>
660
+ public bool ? mentions { get ; set ; }
661
+ }
662
+
653
663
#region Entities Options Converter
654
664
public class EntitiesOptionsConverter : fsConverter
655
665
{
@@ -872,6 +882,9 @@ public override fsResult TrySerialize(object instance, out fsData serialized, Ty
872
882
if ( parameters . xpath != null )
873
883
serialization . Add ( "xpath" , new fsData ( parameters . xpath ) ) ;
874
884
885
+ if ( parameters . limit_text_characters != null )
886
+ serialization . Add ( "limit_text_characters" , new fsData ( ( int ) parameters . limit_text_characters ) ) ;
887
+
875
888
fsData tempData = null ;
876
889
_serializer . TrySerialize ( parameters . features , out tempData ) ;
877
890
serialization . Add ( "features" , tempData ) ;
0 commit comments