public PresageService() { past_buffer = ""; future_buffer = ""; prsg = new Presage(get_past_stream, get_future_stream); System.Console.WriteLine("New PresageService instance created"); }
void Start() { value = new Destin(initialDestinValue); presage = new Presage(); phaseMachine = new PhaseMachine(); hero = new Hero("My Hero!", 5, 5, 2, 2, 2, 2, 2, 0); monster = new Monster("Da Monsta", 7, 3, 2, 2, 1); }
public PresagePredictor() { buffer = ""; nextWord = ""; presage = new Presage ( callback_get_past_stream, callback_get_future_stream ); }
// Use this for initialization void Start() { Screen.orientation = ScreenOrientation.AutoRotation; #if UNITY_ANDROID // Initializing Presage Presage.Initialize("270413"); #endif interstitialStatus = GameObject.Find("InterstitialStatus").GetComponent <Text>(); optinVideoStatus = GameObject.Find("OptinVideoStatus").GetComponent <Text>(); }
// Use this for initialization void Awake() { #if UNITY_ANDROID PresageInterstitialImpl presageInterstitialCallback = new PresageInterstitialImpl(); // Initializing Presage Presage.Initialize("270413"); PresageInterstitial = new PresageInterstitial("82022610-5a50-0135-7016-0242ac120003"); PresageInterstitial.SetPresageInterstitialCallback(presageInterstitialCallback); presageEula = new PresageEula(); presageEula.SetIEulaHandler(new PresageEulaHandler()); presageEula.LaunchWithEula(); #endif }
public static void Main() { presage_csharp_demo demo = new presage_csharp_demo(); try { Presage prsg = new Presage ( demo.callback_get_past_stream, demo.callback_get_future_stream, "presage_csharp_demo.xml" ); System.Console.WriteLine("predict: "); foreach (string str in prsg.predict()) { System.Console.WriteLine(" " + str); } System.Console.WriteLine("context: " + prsg.context()); System.Console.WriteLine("prefix: " + prsg.prefix()); System.Console.WriteLine("context_change: " + prsg.context_change()); System.Console.WriteLine("completion: " + prsg.completion("future")); System.Console.WriteLine("suggestions: " + prsg.get_config("Presage.Selector.SUGGESTIONS")); prsg.set_config("Presage.Selector.SUGGESTIONS", "10"); System.Console.WriteLine("suggestions: " + prsg.get_config("Presage.Selector.SUGGESTIONS")); prsg.learn("Prediction is very difficult, especially about the future."); System.Console.WriteLine("predict: "); foreach (string str in prsg.predict()) { System.Console.WriteLine(" " + str); } prsg.save_config(); System.Console.WriteLine("version: " + prsg.version()); } catch (PresageException ex) { System.Console.WriteLine("Caught presage exception: {0}", ex.ToString()); } }
// Use this for initialization void Start() { #if UNITY_ANDROID // Initializing Ogury Presage.Initialize("270413"); #endif // Initializing MoPub var sdkConfig = new MoPub.SdkConfiguration { AdUnitId = "3fa7d633bf8246f3a4ec0d92f477d3ca" }; MoPub.InitializeSdk(sdkConfig); MoPub.LoadInterstitialPluginsForAdUnits(_InterstitialAdUnits); MoPub.LoadRewardedVideoPluginsForAdUnits(_RewardedAdUnits); }
public PresageSuggestions() : base() { prsg = new Presage(this.callback_get_past_stream, this.callback_get_future_stream); }