with iOS 12, Apple released a new framework for language recognition and other interesting stuff. Is called NLLanguageRecognizer.
Use the Natural Language framework to perform tasks like language and script identification, tokenization, lemmatization, parts-of-speech tagging, and named entity recognition. You can also use this framework with Create ML to train and deploy custom natural language models.
Continue reading “Swift – Natural language recognizer”
Very often in Swift, you can see various methods called one each other and linked by a dot “.”.
These methods are called chained methods. Probably using Alamofire you already have seen this behaviour:
Continue reading “Swift – Chaining methods”
I need a cpp function (without using boost, obv) that split a string in parts using an other string as token.
[code lang=”cpp” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]Center: (8.37, 9.86); Radius: 18.13; Point: (17.83, 6.51)[/code]
Continue reading “C++, tokenize a string”
You want to remove the whitespaces at the end of the rows in your code?
Continue reading “[Xcode] Trailing whitespaces”
Today a little tutorial to find a word in a big ordered text file using binary search in objective-c.
Continue reading “[Objective-C] Fast String Binary Search”
Metodo comodo comodo per ritornare da iso-8859-1 a utf-8 una stringa corretta:
Continue reading “[C#] Encoding Special Characters”