What is ETXInfinity (ETX) | What is ETX token

In this article, we'll discuss information about the ETXInfinity project and ETX token. What is ETXInfinity (ETX) | What is ETX token?

ETX is a Cryptocurrency ecosystem aimed at integrating the world of Sports into Blockchain and increase the relationship between Sporting clubs and their fans throughout the world. ETX Infinity creates a multi-element sports blockchain ecosystem that allows Sport fans to connect with their Sport stars and clubs around the world through a decentralized ecosystem.

With this activity being done within the ecosystem, with the ETX token as the native token or currency payment, the profits generated from sporting activities will be invested into the token in which it will grow significantly. In as much as the project strives for growth which is partnering with other sporting academies, clubs and even institutional investors, people using the EXT Platform will also gain incentives and revenue from their activities within the ecosystem (e.g., betting).

The Mission and Vision of ETX Infinity

  • Bring the metaverse to sports gobally
  • Increase the relationship between sports teams and fans globally
  • Provide sports entertainment to billions of sports fans in the world
  • Intergrate the cryptocurrency market into the sports industry

ETX Infinity

ETX is a Cryptocurrency ecosystem aimed at intergrating the world of Sports into Blockchain and increasing the Relationship between Sport clubs and their fans throughout the world. ETX Infinity creates a multi-element sports blockchain ecosystem that allows Sport fans to connect with their sport stars and clubs around the world through a decentralized ecosystem.

1. ETX Exchange

A decentralized exchange is a cryptocurrency exchange that allows peer-to-peer transactions directly from your digital wallet without going through an intermediary. Examples of DEXs include Uniswap, PancakeSwap, dYdX, and Kyber.A decentralized exchange relies on smart contracts, self-executing pieces of code on a blockchain. These smart contracts allow for more privacy and less slippage (another term for transaction costs) than a centralized cryptocurrency exchange.

The Etx exchange will allow users to swap and exchange their tokens and NFTs within the ETX infinity ecosystem. The ETX exchange is a decentralized exchange which will be on the ETX blockchain network and will allow users in the ecosystem to swap, provide liquidity for their fan tokens, stake and buy their favorite NFTS.

Swap: The ETX exchange will allow all users within the ETX Blockchain to swap their tokens with other tokens on the Blockchain. The swap system will allow users to buy their favorite NFT tokens using ETX based tokens. All swapping and exchange fees will be in ETX tokens. In addition there will be no legal restrictions for users to swap their tokens or NFTS on the ETX exchange since it’s a decentralized platform

Liquidity: Sport clubs will be able to add or remove Liquidity on the ETX exchange for their tokens to trade in a secure and easy way. There will also be an option to lock the Liquidity on the exchange and this will allow users to have more trust on the token that they want to buy.

NFT Marketplace: The NFT marketplace will connect Sport clubs and stars with their fans allowing all users to buy or sell their NFTs to other users. Stars and sport clubs will be able to showcase their NFTs on the ETX exchange for their fans to purchase and users and fans will be able to resell their NFTs on the ETX marketplace. The NFT marketplace will be available within the ETX exchange

Staking & Farms: Staking and farming allows asset holders to earn tokens by offering their assets in a staking pool or farm. There will be staking and farming features within the ETX exchange which will allow users to earn tokens by offering their NFT assets or tokens. These features will be available on the ETX exchange which will be available on web, google play store or apple store as a decentralized application.

2. ETX Sports Metaverse

The Metaverse is built and developed so that the virtual world continues to evolve. Users can build their own streets and buildings, as well as create signs, parks, and even new things that don’t exist in our reality. Gigantic light spectacles or oversized buildings and areas in which the laws of physics as we know them seem to be suspended. In order to understand the impact the Metaverse will have on sports, one must first understand what the Metaverse is in the first place. Because after Facebook’s admittedly clever move to name itself after the Metaverse, there is a lot of confusion about the actual background and technology.

Many people who do not work in the industry still consider this Metaverse definition to be very abstract and dreams of the future that are still several decades away. However, the Metaverse is already in its infancy and it has already been shown several times that the vision has long since become reality.

Innovative technologies, such as cryptocurrencies and blockchain, have extremely simplified the progress of the Metaverse in recent years. These allow, even across different providers, the continuity of data in the Metaverse. NFTs are the best example of how blockchain technology can be used to verify ownership of digital assets, and there are already 3D virtual reality platforms that take advantage of this technology.

If you are now legitimately wondering what exactly sport has to do with all these explanations, you are certainly not alone. But the answer to this question is not trivial. Because on the one hand, traditional sports somehow have nothing at all to do with the Metaverse world, but on the other hand, the world of sports will fundamentally change as a result.

3. ETX Metaverse

ETX will create a Metaverse whereby users can experience the world of Sports through virtual reality up close. The ETX Metaverse is the first Metaverse created on its own blockchain so that Sports fans can experience a new world of entertainment like never before. On the ETX Metaverse arena, sports enthusiasts will come together with their virtual avatars, buy and wear fan merchandise of their favorite clubs, socialize, celebrate sports with other fans and, of course, watch the games and events. There are no geographical and physical barriers anymore. In the Metaverse, any number of fans from England can watch the Superbowl in a Metaverse stadium in USA.

Through ETX mutli-view camera technology through VR technology, spectators can even enter the field itself and walk alongside the players, join the football cheerleaders and watch the game from different vantage points. Last but not least, Metaverse allows everyone to sit in the same room with their friends, even if they are physically miles away.

Through ETX Infinity, fans will no longer just be present at sporting events, but right in the middle of them – and still in the comfort of their own home on the couch or computer chair.

4. Introduction to the Idea of Sports TV in Crypto

The global sports industry is in the midst of a considerable transformation. The effects of the Covid-19 pandemic, combined with a market that comprises an increasing proportion of tech-savvy millennials, is changing the way sport is consumed and supported around the world. While the pandemic certainly had a big impact on revenues in the short term, the long-term driver of overall change is the increasing move towards streamed content. Such a rise was in part fueled by imposed lockdowns. Relative normalcy resumed; however, a continued increase is expected with the global streaming market projected to grow by 21.3% by the year 2030.

With the sporting environment becoming a bigger topic in this current world it is quite amazing that sporting television channels are gaining huge revenue in people streaming. This aspect however hasn’t been integrated massively into the cryptocurrency world; the mission of ETX Infinity clearly has the way to spread the word of sporting through decentralized channels of broadcasted sporting activities around the world. The popular known world sports which are massively streamed are Soccer, Basketball, NFL, Tennis and etc. but ETX Infinity television will integrate and promote all sporting activities to be popular on its platform. Currently the most sport that brings revenue through streaming is National Football League (NFL) followed by Major League Baseball (MLB), National Basketball Association (NBA), Premier League (Soccer) etc. NFL brings an average revenue of 16 billion a year in which revenue from broadcasting is around 10 billion, then just imagine bringing this revenue to ETX Infinity with benefits of decentralization and engaging the cryptocurrency community to the world.

5. ETX Sports TV

ETX will make partnerships with other sporting clubs in trying to promote ETX Infinity utility of decentralized channels for the whole world. This partnership with known world clubs will bring viability, transparency and more trust for the project to exceed expectations and fulfil its main aim to be a billion-dollar market cap project. One thing for certain is that the landscape of the sports industry will look very different in the next few years, so sporting organizations need to take action now to ensure they are well-positioned to capitalize on new opportunities. The sports industry will continue to see an influx of money from new sources, shifting power dynamics and more widespread use of emerging technologies Revenue will be generated in many ways in which ETX Infinity will be one of the first sport streaming and decentralized cryptocurrency project in the world.

Sports are exciting, fun, and are followed by intense fandoms; however, the behind the scenes on how they operate and generate profits can be just as important as the primary concern for ETX Infinity. People will be able to subscribe the ETX Infinity channels for sporting which will bring revenue to the project massively, worsening the fact that the World Cup is approaching brings much viability for this utility. Investors will be able to subscribe the TV channels with ETX Infinity tokens and stream sports. This will bring much revenue which will be automatically invested into the token as it is the primary motive for the project.

There’s no doubt the sports industry has learned valuable lessons from the unprecedented events of the past few years and with an eye on the future, it is laying the foundations for new revenue streams that will provide greater financial stability in an increasingly digitized world. The sports industry faces significant changes, which makes it vital to ensure maximum value can be realized from digital assets. Streaming technology can even complement the use of NFTs by encouraging the sharing of assets without making additional copies in the process. This maximizes exposure and exclusivity at the same time. The Television channels will involve levels in which more streamers will be rewarded with rare unique NFTs of wonderful memories that have happened in sporting for example Diego Maradona’s Hand of God during the World Cup. The quality of streaming will be also be distinguished with the subscription package done. The prices of sporting subscriptions at the moment will also differ depending on the type of sport being streamed.

6. The Idea behind Sports betting in Crypto

Through sponsorship and advertising, the gambling industry has successfully and deeply hitched itself to the world’s most popular game. Legal sports betting has gone mainstream around the world and dozens of states have legalized it. Currently a multibillion-dollar betting boom is afoot. More money is now wagered on which may become the biggest market of all. As betting expands, the boundaries that once separated gambling from sports media and professional sports leagues are disappearing. This industry is poised for explosive growth in the next coming years and ETX Infinity is on the verge of creating its unique betting site.

For decades, sports betting was an add-on at most casinos. It added to the flavour of the place, but the real action (and revenue) was at slot machines, keno, roulette and other table games. Now, sports betting is surging. Digital betting has been behind this surge. Like many online activities, it got a huge boost from the Covid-19 lockdowns in which people were now dealing with their social lives online. Half of the Premier League’s 20 clubs in England have a gambling sponsor on their shirt and the proportion rises to 17 out of 24 among clubs in the Championship, which is itself sponsored by Sky Bet.

7. ETX Sports Betting

People have always been very enthusiastic about sports, and online sports betting provides another way to participate in a season’s excitement. Excitement that was once shared among office friends can now be experienced on a bigger scale as apps and websites connect huge fandoms together to bet on fantasy sports every week. Now that it’s accessible through apps and the increase in number of participants also increase the prizes of the pay-outs. The bigger the prizes, the bigger the excitement.

An effect of heightened sports betting participation is that sports as a whole sees more money. As fans invest money in their wagers, they get more invested in the games and their outcomes. They become more likely to follow the games regularly, giving attention to sports channels and overall giving attention to the ETX Infinity token which will become successful in the long run.

Mobile wagering has become the preferred method of sports gamblers, this is the moment where ETX Infinity pops in to create its own site and application that will be used for gambling sporting activities around the world using ETX Infinity tokens as the primary payment or investment. The revenue generated on the platform will be invested in the project and people will also benefit as wins on their bets will be rewarded with ETX Infinity tokens.

App-based betting increase the stakes and connects communities together for bigger jackpots. The effect on states has been huge, with many making millions of dollars in revenue on a monthly basis from sports betting alone. ETX infinity gambling site and apps will not only work for people wagering on sporting activities but it will also be used as a marketing technic to increase awareness of the ETX Infinity token and spread it around the world.

The increase in the popularity of gambling will not only increase the awareness and marketing of the ETX Infinity token but it will also invite investors to use this decentralized site without legal restrictions which in case will also be a jackpot to introduce them to the cryptocurrency world and see the benefits of where the world is heading to, also keeping updated to the new age of technological advancement.

8. ETX Gaming

The ETX Infinity project is built from a business point of view, that is, as a real business project that will generate products and services for the gaming community, while the profits from these will be reinvested within the same ETX Infinity ecosystem to enhance the token and benefit to holders.

Many players and content creators have trouble monetizing their passion on their way to the top, which leads them to dilute their time in search of resources, sponsors, or even side jobs to compensate the instability of income. Therefore, ETX Infinity will be a tool for these professionals to monetize their careers and allow them to obtain better returns on their time through the creation of self-sustaining platforms that allow them to generate higher income.

The ETX Infinity token is the first token launched which is going to allow gamers to come in one place and compete using the cryptocurrency ecosystem with ETX Infinity as the native token. This token allowed the formation and hiring of the development team to start this great project.

The objective of ETX Infinity Token is to become the corporate token of the gaming platform and the main form of payment within the ecosystem, this token will also be in charge of raising the necessary budget for global positioning through an important and extensive marketing strategy.

TOKENOMICS

  • Name: ETXInfinity 
  • Contract: 0x7D5b6F2E31B1e50e6a45130f4AdBB8839FAdeb2E 
  • SYMBOL: ETX 
  • CHAIN : BSC 
  • SUPPLY : 1 Billion 
  • TAX : 0%

Developing for the Future

We aren't your average Blockchain project, our team is here to create a project that will last generations. With the future on our minds, all of our team and ecology tokens are vested linearly over 6 months. Protecting all investors in a safer presale.

ETX Tokens are allocated as follows

ETX Token vesting

Become a ETX Player Now

  • Connect your wallet

We recommend using metamask to create an etx20 wallet, keep your backup phrase safe, this is the only entry to ETX

  • ETX MainNet

ETX Infinity will support sports clubs around the world and will enable them to enter the world of cryptocurrency and connect with their fans through the ETX Mainnet by helping them create fan tokens or NFTs on the ETX blockchain

  • VR Online

ETX will create a Metaverse whereby users can experience the world of Sports through virtual reality up close. The ETX Metaverse is the first Metaverse created on its own blockchain so that Sports fans can experience a new world of entertainment like never before

  • NFT MarketPlace

Sport Clubs and Sports Stars will be abled to mint and create their on ETX official unique NFTs to share with their fans


How and Where to Buy ETX token?

ETX has been listed on a number of crypto exchanges, unlike other main cryptocurrencies, it cannot be directly purchased with fiats money. However, You can still easily buy this coin by first buying Bitcoin, ETH, USDT, BNB from any large exchanges and then transfer to the exchange that offers to trade this coin, in this guide article we will walk you through in detail the steps to buy ETX token

You will have to first buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

We will use Binance Exchange here as it is one of the largest crypto exchanges that accept fiat deposits.

Once you finished the KYC process. You will be asked to add a payment method. Here you can either choose to provide a credit/debit card or use a bank transfer, and buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

☞ SIGN UP ON BINANCE

Once finished you will then need to make a BTC/ETH/USDT/BNB deposit to the exchange from Binance depending on the available market pairs. After the deposit is confirmed you may then purchase ETX from the exchange.

The top exchange for trading in ETX token is currently: PancakeSwap (V2).

Bep-20 contracts: 0x7d5b6f2e31b1e50e6a45130f4adbb8839fadeb2e

🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner

Find more information ETX token ☞ Website

I hope this post will help you. Don't forget to leave a like, comment and sharing it with others. Thank you!

🔺DISCLAIMER: The Information in the post isn’t financial advice, is intended FOR GENERAL INFORMATION PURPOSES ONLY. Trading Cryptocurrency is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money.

#bitcoin #cryptocurrency #token #coin 

What is GEEK

Buddha Community

What is ETXInfinity (ETX) | What is ETX token

Words Counted: A Ruby Natural Language Processor.

WordsCounted

We are all in the gutter, but some of us are looking at the stars.

-- Oscar Wilde

WordsCounted is a Ruby NLP (natural language processor). WordsCounted lets you implement powerful tokensation strategies with a very flexible tokeniser class.

Are you using WordsCounted to do something interesting? Please tell me about it.

 

Demo

Visit this website for one example of what you can do with WordsCounted.

Features

  • Out of the box, get the following data from any string or readable file, or URL:
    • Token count and unique token count
    • Token densities, frequencies, and lengths
    • Char count and average chars per token
    • The longest tokens and their lengths
    • The most frequent tokens and their frequencies.
  • A flexible way to exclude tokens from the tokeniser. You can pass a string, regexp, symbol, lambda, or an array of any combination of those types for powerful tokenisation strategies.
  • Pass your own regexp rules to the tokeniser if you prefer. The default regexp filters special characters but keeps hyphens and apostrophes. It also plays nicely with diacritics (UTF and unicode characters): Bayrūt is treated as ["Bayrūt"] and not ["Bayr", "ū", "t"], for example.
  • Opens and reads files. Pass in a file path or a url instead of a string.

Installation

Add this line to your application's Gemfile:

gem 'words_counted'

And then execute:

$ bundle

Or install it yourself as:

$ gem install words_counted

Usage

Pass in a string or a file path, and an optional filter and/or regexp.

counter = WordsCounted.count(
  "We are all in the gutter, but some of us are looking at the stars."
)

# Using a file
counter = WordsCounted.from_file("path/or/url/to/my/file.txt")

.count and .from_file are convenience methods that take an input, tokenise it, and return an instance of WordsCounted::Counter initialized with the tokens. The WordsCounted::Tokeniser and WordsCounted::Counter classes can be used alone, however.

API

WordsCounted

WordsCounted.count(input, options = {})

Tokenises input and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.count("Hello Beirut!")

Accepts two options: exclude and regexp. See Excluding tokens from the analyser and Passing in a custom regexp respectively.

WordsCounted.from_file(path, options = {})

Reads and tokenises a file, and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.from_file("hello_beirut.txt")

Accepts the same options as .count.

Tokeniser

The tokeniser allows you to tokenise text in a variety of ways. You can pass in your own rules for tokenisation, and apply a powerful filter with any combination of rules as long as they can boil down into a lambda.

Out of the box the tokeniser includes only alpha chars. Hyphenated tokens and tokens with apostrophes are considered a single token.

#tokenise([pattern: TOKEN_REGEXP, exclude: nil])

tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise

# With `exclude`
tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise(exclude: "hello")

# With `pattern`
tokeniser = WordsCounted::Tokeniser.new("I <3 Beirut!").tokenise(pattern: /[a-z]/i)

See Excluding tokens from the analyser and Passing in a custom regexp for more information.

Counter

The WordsCounted::Counter class allows you to collect various statistics from an array of tokens.

#token_count

Returns the token count of a given string.

counter.token_count #=> 15

#token_frequency

Returns a sorted (unstable) two-dimensional array where each element is a token and its frequency. The array is sorted by frequency in descending order.

counter.token_frequency

[
  ["the", 2],
  ["are", 2],
  ["we",  1],
  # ...
  ["all", 1]
]

#most_frequent_tokens

Returns a hash where each key-value pair is a token and its frequency.

counter.most_frequent_tokens

{ "are" => 2, "the" => 2 }

#token_lengths

Returns a sorted (unstable) two-dimentional array where each element contains a token and its length. The array is sorted by length in descending order.

counter.token_lengths

[
  ["looking", 7],
  ["gutter",  6],
  ["stars",   5],
  # ...
  ["in",      2]
]

#longest_tokens

Returns a hash where each key-value pair is a token and its length.

counter.longest_tokens

{ "looking" => 7 }

#token_density([ precision: 2 ])

Returns a sorted (unstable) two-dimentional array where each element contains a token and its density as a float, rounded to a precision of two. The array is sorted by density in descending order. It accepts a precision argument, which must be a float.

counter.token_density

[
  ["are",     0.13],
  ["the",     0.13],
  ["but",     0.07 ],
  # ...
  ["we",      0.07 ]
]

#char_count

Returns the char count of tokens.

counter.char_count #=> 76

#average_chars_per_token([ precision: 2 ])

Returns the average char count per token rounded to two decimal places. Accepts a precision argument which defaults to two. Precision must be a float.

counter.average_chars_per_token #=> 4

#uniq_token_count

Returns the number of unique tokens.

counter.uniq_token_count #=> 13

Excluding tokens from the tokeniser

You can exclude anything you want from the input by passing the exclude option. The exclude option accepts a variety of filters and is extremely flexible.

  1. A space-delimited string. The filter will normalise the string.
  2. A regular expression.
  3. A lambda.
  4. A symbol that names a predicate method. For example :odd?.
  5. An array of any combination of the above.
tokeniser =
  WordsCounted::Tokeniser.new(
    "Magnificent! That was magnificent, Trevor."
  )

# Using a string
tokeniser.tokenise(exclude: "was magnificent")
# => ["that", "trevor"]

# Using a regular expression
tokeniser.tokenise(exclude: /trevor/)
# => ["magnificent", "that", "was", "magnificent"]

# Using a lambda
tokeniser.tokenise(exclude: ->(t) { t.length < 4 })
# => ["magnificent", "that", "magnificent", "trevor"]

# Using symbol
tokeniser = WordsCounted::Tokeniser.new("Hello! محمد")
tokeniser.tokenise(exclude: :ascii_only?)
# => ["محمد"]

# Using an array
tokeniser = WordsCounted::Tokeniser.new(
  "Hello! اسماءنا هي محمد، كارولينا، سامي، وداني"
)
tokeniser.tokenise(
  exclude: [:ascii_only?, /محمد/, ->(t) { t.length > 6}, "و"]
)
# => ["هي", "سامي", "وداني"]

Passing in a custom regexp

The default regexp accounts for letters, hyphenated tokens, and apostrophes. This means twenty-one is treated as one token. So is Mohamad's.

/[\p{Alpha}\-']+/

You can pass your own criteria as a Ruby regular expression to split your string as desired.

For example, if you wanted to include numbers, you can override the regular expression:

counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["numbers", "1", "2", "and", "3"]

Opening and reading files

Use the from_file method to open files. from_file accepts the same options as .count. The file path can be a URL.

counter = WordsCounted.from_file("url/or/path/to/file.text")

Gotchas

A hyphen used in leu of an em or en dash will form part of the token. This affects the tokeniser algorithm.

counter = WordsCounted.count("How do you do?-you are well, I see.")
counter.token_frequency

[
  ["do",   2],
  ["how",  1],
  ["you",  1],
  ["-you", 1], # WTF, mate!
  ["are",  1],
  # ...
]

In this example -you and you are separate tokens. Also, the tokeniser does not include numbers by default. Remember that you can pass your own regular expression if the default behaviour does not fit your needs.

A note on case sensitivity

The program will normalise (downcase) all incoming strings for consistency and filters.

Roadmap

Ability to open URLs

def self.from_url
  # open url and send string here after removing html
end

Contributors

See contributors.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author: abitdodgy
Source code: https://github.com/abitdodgy/words_counted
License: MIT license

#ruby  #ruby-on-rails 

Royce  Reinger

Royce Reinger

1658068560

WordsCounted: A Ruby Natural Language Processor

WordsCounted

We are all in the gutter, but some of us are looking at the stars.

-- Oscar Wilde

WordsCounted is a Ruby NLP (natural language processor). WordsCounted lets you implement powerful tokensation strategies with a very flexible tokeniser class.

Features

  • Out of the box, get the following data from any string or readable file, or URL:
    • Token count and unique token count
    • Token densities, frequencies, and lengths
    • Char count and average chars per token
    • The longest tokens and their lengths
    • The most frequent tokens and their frequencies.
  • A flexible way to exclude tokens from the tokeniser. You can pass a string, regexp, symbol, lambda, or an array of any combination of those types for powerful tokenisation strategies.
  • Pass your own regexp rules to the tokeniser if you prefer. The default regexp filters special characters but keeps hyphens and apostrophes. It also plays nicely with diacritics (UTF and unicode characters): Bayrūt is treated as ["Bayrūt"] and not ["Bayr", "ū", "t"], for example.
  • Opens and reads files. Pass in a file path or a url instead of a string.

Installation

Add this line to your application's Gemfile:

gem 'words_counted'

And then execute:

$ bundle

Or install it yourself as:

$ gem install words_counted

Usage

Pass in a string or a file path, and an optional filter and/or regexp.

counter = WordsCounted.count(
  "We are all in the gutter, but some of us are looking at the stars."
)

# Using a file
counter = WordsCounted.from_file("path/or/url/to/my/file.txt")

.count and .from_file are convenience methods that take an input, tokenise it, and return an instance of WordsCounted::Counter initialized with the tokens. The WordsCounted::Tokeniser and WordsCounted::Counter classes can be used alone, however.

API

WordsCounted

WordsCounted.count(input, options = {})

Tokenises input and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.count("Hello Beirut!")

Accepts two options: exclude and regexp. See Excluding tokens from the analyser and Passing in a custom regexp respectively.

WordsCounted.from_file(path, options = {})

Reads and tokenises a file, and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.from_file("hello_beirut.txt")

Accepts the same options as .count.

Tokeniser

The tokeniser allows you to tokenise text in a variety of ways. You can pass in your own rules for tokenisation, and apply a powerful filter with any combination of rules as long as they can boil down into a lambda.

Out of the box the tokeniser includes only alpha chars. Hyphenated tokens and tokens with apostrophes are considered a single token.

#tokenise([pattern: TOKEN_REGEXP, exclude: nil])

tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise

# With `exclude`
tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise(exclude: "hello")

# With `pattern`
tokeniser = WordsCounted::Tokeniser.new("I <3 Beirut!").tokenise(pattern: /[a-z]/i)

See Excluding tokens from the analyser and Passing in a custom regexp for more information.

Counter

The WordsCounted::Counter class allows you to collect various statistics from an array of tokens.

#token_count

Returns the token count of a given string.

counter.token_count #=> 15

#token_frequency

Returns a sorted (unstable) two-dimensional array where each element is a token and its frequency. The array is sorted by frequency in descending order.

counter.token_frequency

[
  ["the", 2],
  ["are", 2],
  ["we",  1],
  # ...
  ["all", 1]
]

#most_frequent_tokens

Returns a hash where each key-value pair is a token and its frequency.

counter.most_frequent_tokens

{ "are" => 2, "the" => 2 }

#token_lengths

Returns a sorted (unstable) two-dimentional array where each element contains a token and its length. The array is sorted by length in descending order.

counter.token_lengths

[
  ["looking", 7],
  ["gutter",  6],
  ["stars",   5],
  # ...
  ["in",      2]
]

#longest_tokens

Returns a hash where each key-value pair is a token and its length.

counter.longest_tokens

{ "looking" => 7 }

#token_density([ precision: 2 ])

Returns a sorted (unstable) two-dimentional array where each element contains a token and its density as a float, rounded to a precision of two. The array is sorted by density in descending order. It accepts a precision argument, which must be a float.

counter.token_density

[
  ["are",     0.13],
  ["the",     0.13],
  ["but",     0.07 ],
  # ...
  ["we",      0.07 ]
]

#char_count

Returns the char count of tokens.

counter.char_count #=> 76

#average_chars_per_token([ precision: 2 ])

Returns the average char count per token rounded to two decimal places. Accepts a precision argument which defaults to two. Precision must be a float.

counter.average_chars_per_token #=> 4

#uniq_token_count

Returns the number of unique tokens.

counter.uniq_token_count #=> 13

Excluding tokens from the tokeniser

You can exclude anything you want from the input by passing the exclude option. The exclude option accepts a variety of filters and is extremely flexible.

  1. A space-delimited string. The filter will normalise the string.
  2. A regular expression.
  3. A lambda.
  4. A symbol that names a predicate method. For example :odd?.
  5. An array of any combination of the above.
tokeniser =
  WordsCounted::Tokeniser.new(
    "Magnificent! That was magnificent, Trevor."
  )

# Using a string
tokeniser.tokenise(exclude: "was magnificent")
# => ["that", "trevor"]

# Using a regular expression
tokeniser.tokenise(exclude: /trevor/)
# => ["magnificent", "that", "was", "magnificent"]

# Using a lambda
tokeniser.tokenise(exclude: ->(t) { t.length < 4 })
# => ["magnificent", "that", "magnificent", "trevor"]

# Using symbol
tokeniser = WordsCounted::Tokeniser.new("Hello! محمد")
tokeniser.tokenise(exclude: :ascii_only?)
# => ["محمد"]

# Using an array
tokeniser = WordsCounted::Tokeniser.new(
  "Hello! اسماءنا هي محمد، كارولينا، سامي، وداني"
)
tokeniser.tokenise(
  exclude: [:ascii_only?, /محمد/, ->(t) { t.length > 6}, "و"]
)
# => ["هي", "سامي", "وداني"]

Passing in a custom regexp

The default regexp accounts for letters, hyphenated tokens, and apostrophes. This means twenty-one is treated as one token. So is Mohamad's.

/[\p{Alpha}\-']+/

You can pass your own criteria as a Ruby regular expression to split your string as desired.

For example, if you wanted to include numbers, you can override the regular expression:

counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["numbers", "1", "2", "and", "3"]

Opening and reading files

Use the from_file method to open files. from_file accepts the same options as .count. The file path can be a URL.

counter = WordsCounted.from_file("url/or/path/to/file.text")

Gotchas

A hyphen used in leu of an em or en dash will form part of the token. This affects the tokeniser algorithm.

counter = WordsCounted.count("How do you do?-you are well, I see.")
counter.token_frequency

[
  ["do",   2],
  ["how",  1],
  ["you",  1],
  ["-you", 1], # WTF, mate!
  ["are",  1],
  # ...
]

In this example -you and you are separate tokens. Also, the tokeniser does not include numbers by default. Remember that you can pass your own regular expression if the default behaviour does not fit your needs.

A note on case sensitivity

The program will normalise (downcase) all incoming strings for consistency and filters.

Roadmap

Ability to open URLs

def self.from_url
  # open url and send string here after removing html
end

Are you using WordsCounted to do something interesting? Please tell me about it.

Gem Version 

RubyDoc documentation.

Demo

Visit this website for one example of what you can do with WordsCounted.


Contributors

See contributors.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author: Abitdodgy
Source Code: https://github.com/abitdodgy/words_counted 
License: MIT license

#ruby #nlp 

aaron silva

aaron silva

1622197808

SafeMoon Clone | Create A DeFi Token Like SafeMoon | DeFi token like SafeMoon

SafeMoon is a decentralized finance (DeFi) token. This token consists of RFI tokenomics and auto-liquidity generating protocol. A DeFi token like SafeMoon has reached the mainstream standards under the Binance Smart Chain. Its success and popularity have been immense, thus, making the majority of the business firms adopt this style of cryptocurrency as an alternative.

A DeFi token like SafeMoon is almost similar to the other crypto-token, but the only difference being that it charges a 10% transaction fee from the users who sell their tokens, in which 5% of the fee is distributed to the remaining SafeMoon owners. This feature rewards the owners for holding onto their tokens.

Read More @ https://bit.ly/3oFbJoJ

#create a defi token like safemoon #defi token like safemoon #safemoon token #safemoon token clone #defi token

aaron silva

aaron silva

1621844791

SafeMoon Clone | SafeMoon Token Clone | SafeMoon Token Clone Development

The SafeMoon Token Clone Development is the new trendsetter in the digital world that brought significant changes to benefit the growth of investors’ business in a short period. The SafeMoon token clone is the most widely discussed topic among global users for its value soaring high in the marketplace. The SafeMoon token development is a combination of RFI tokenomics and the auto-liquidity generating process. The SafeMoon token is a replica of decentralized finance (DeFi) tokens that are highly scalable and implemented with tamper-proof security.

The SafeMoon tokens execute efficient functionalities like RFI Static Rewards, Automated Liquidity Provisions, and Automatic Token Burns. The SafeMoon token is considered the most advanced stable coin in the crypto market. It gained global audience attention for managing the stability of asset value without any fluctuations in the marketplace. The SafeMoon token clone is completely decentralized that eliminates the need for intermediaries and benefits the users with less transaction fee and wait time to overtake the traditional banking process.

Reasons to invest in SafeMoon Token Clone :

  • The SafeMoon token clone benefits the investors with Automated Liquidity Pool as a unique feature since it adds more revenue for their business growth in less time. The traders can experience instant trade round the clock for reaping profits with less investment towards the SafeMoon token.
  • It is integrated with high-end security protocols like two-factor authentication and signature process to prevent various hacks and vulnerable activities. The Smart Contract system in SafeMoon token development manages the overall operation of transactions without any delay,
  • The users can obtain a reward amount based on the volume of SafeMoon tokens traded in the marketplace. The efficient trading mechanism allows the users to trade the SafeMoon tokens at the best price for farming. The user can earn higher rewards based on the staking volume of tokens by users in the trade market.
  • It allows the token holders to gain complete ownership over their SafeMoon tokens after purchasing from DeFi exchanges. The SafeMoon community governs the token distribution, price fluctuations, staking, and every other token activity. The community boosts the value of SafeMoon tokens.
  • The Automated Burning tokens result in the community no longer having control over the SafeMoon tokens. Instead, the community can control the burn of the tokens efficiently for promoting its value in the marketplace. The transaction of SafeMoon tokens on the blockchain platform is fast, safe, and secure.

The SafeMoon Token Clone Development is a promising future for upcoming investors and startups to increase their business revenue in less time. The SafeMoon token clone has great demand in the real world among millions of users for its value in the market. Investors can contact leading Infinite Block Tech to gain proper assistance in developing a world-class SafeMoon token clone that increases the business growth in less time.

#safemoon token #safemoon token clone #safemoon token clone development #defi token

Angelina roda

Angelina roda

1624230000

How to Buy FEG Token - The EASIEST Method 2021. JUST IN A FEW MINUTES!!!

How to Buy FEG Token - The EASIEST Method 2021
In today’s video, I will be showing you guys how to buy the FEG token/coin using Trust Wallet and Pancakeswap. This will work for both iOS and Android devices!
📺 The video in this post was made by More LimSanity
The origin of the article: https://www.youtube.com/watch?v=LAVwpiEN6bg
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #feg token #token #how to buy feg token #how to buy feg token - the easiest method 2021