What is 10x.gg (XGG) | What is 10x.gg token | What is XGG token

Cryptocurrencies have revolutionized our lives in almost every aspect. From the way we deal with our finances and even how we invest. 10x is a unique platform that has been created for all the crypto enthusiasts globally. Basically it is designed in a way in which users will be able to join a lottery system whereby lucky winners will be able to gain massive rewards. One will be able to gain up to 10 times what they invested in just 24 hours. This is one of the most innovative crypto projects out there and this article will give a detailed explanation about how this platform works.

Signing up

Before being able to use the platform, users will be directed into the homepage; here the concept of how the platform works is explained and from this page users are also able to sign up and become members. A few details like one’s email and preferred username will be required. After logging in and verifying the account, one is directed to the dashboard page.

How to navigate the dashboard.

Image for post

The dashboard is the main area of the platform and from this point one can be able to see some key statistics. The user will be able to view the balances on all the accounts associated belonging to the user. From the dashboard one is also able to see the total number of registered users and at the same time the number of users who are online at that moment will also be visible. The most trending coin among the platform users will be visible; usually this will be the most used coin in the platform at that particular instance. Winners who have participated in the pools will also be displayed here. The dashboard also has bars that enables users to navigate into the other sections of the website.

The platform has a two factor authentication

Image for post

The platform has put many measures in place to ensure that everything will be secure and that all the users will be protected. One of these security measures is having a two factor authentication system. Upon signing up into the platform, users will have an option to enable this authentication system in their accounts. This doubles down on the security of one’s account making it completely secure.

Pools page

Image for post

This is the page where the users will be able to view all the available tokens and how much of each crypto coin they have in their wallets. From this page one can also add more coins into their accounts in case they need to.

How do the pools work?

The pool is where all the action takes place. This is where one can join the pool rounds by staking a certain amount of coins in their wallet. Users will be able to win a certain amount of money and for every pool there is always a winner. Users will be able to join the pools by staking a certain amount of coins that can be divided or multiplied by a factor of 10 depending on the outcome. One cannot stake more than they have deposited and this means that the amount deposited equals the maximum amount deposited into the pool and this creates a fair chance of winning or losing.

Each pool is designed in such a way a user can’t deposit money twice on the same pool, this ensures that all the participants in a certain pool all have equal chances of winning. Every pool has a lifespan of 24 hours. Every pool will have to be filled by a certain number of users and if a pool fills before 24 hours, it will still be closed but it will take 24 hours for the winner to be announced. There will always be multiple pools in the platform and this means there will be many opportunities to win every single day. In case 24 hours pass and a certain pool has not yet been filled, the pool will automatically close but in this case no one will either win or lose, the users will get a refund and they will be able to use their funds to join other pools. However, it is not an obligation for the users to join another pool after withdrawing their coins for the pool that failed to fill.

Since every pool is created by multiple users and not a single user, one will be able to withdraw their money from the pool as long as the pool is not closed. Once the pool fills and closes, one will not be able to withdraw what they had invested. They will have to wait for the results within 24 hours. All the pools will have to be divisible by 10. For example, a 10 ETH pool can be joined by 10 people each investing 1 ETH, a 20 ETH pool can be joined by 10 people each investing 2ETH and a 100ETH pool can be joined by 10 people each investing 10 ETH. The combinations can be endless as long as everything is divisible by 10. To put it simple, the system has been designed in a way in which the profits will be maximized and the winner will be able to walk away with 10 times what they invested initially.

In each pool, key information will be displayed. This will include the name of the pool, maximum number of users who can join the pool based on the 10 divisibility criteria. The sum of money that will be won by the winner will also be shown to the pool members and a time duration; a countdown towards the 24 hours, either the winner will be announced or the pool will close if sufficient users failed to join that particular pool. The percentage of the pool that has been filled and the numbers of users left to fill the pool will also be displayed. Typically, after each draw the winner will get 90 percent of the money and 10x platform will keep a 10% share.

Ongoing and closed pools

Image for post

This page is available to all the users. It displays the information about all the ongoing pools that have already been started and are still accepting new members. Also all the pools that the user is participating in will be shown at the top of the list of all the ongoing pools. On the other hand the closed pages will display all the pools the user has been involved in and have already been closed; those that the user joined but the pool failed to get enough members and those that went all the way to the draw after the 24 hours.

Wallet page

Image for post

This is the page that shows users their balances and gives them the information about all their holdings in each currency. On this page users can also deposit more coins into their wallets. It is also from this page that one can withdraw their profits from. The total amount of coins that the user has deposited are shown in this section. The available amount represents the outstanding balance after deducting all what has been invested into the ongoing pools at that particular moment. Within the wallet page, we also have the history section that displays the history of all the transactions that the user has carried out. Here the date, status and remarks for each transaction are available. The status will show you if the transaction was successful or whether it is pending.

Claim page

Image for post

This works more like an activity page; it shows the user the total number of pools they are participating in and it also indicates the total wins and losses from all the pools in total. The amount of money made or lost in each pool can be seen in the status section. The history of all the pools that the user participated in will appear here. The name of each of the polls will be indicated plus how they participate in each of the pools. Information related to each pool participation will be indicated here and this will include the amount that was invested in each of these pools, how much was won and how much was lost in each case.

Support page

Image for post

The 10x platform is very user-focused and a lot has been done to give the users any support they may need along the way. The frequently asked question is always the first thing that the user checks whenever they have an issue while any complex question or problem will be addressed by a dedicated support team whose job is to help the users.

The FAQ answers that have been published enables users to see answers to most asked questions by the platform users. At the same time, the platform has a dedicated system that enables the users to chat with the customer support team once the admins respond to their tickets. This ensures that all the questions from the users have been answered and everything has been clarified to the user.

Chat page

Image for post

This is a special page that has been dedicated to help the users communicate with each other globally. They can chat about various issues like different tokens, the platform in general, various pools or anything else that might be relevant to the community.

Tokens listings

10x will offer an opportunity to other companies with their own tokens to be a part of the platform. They will be able to apply for token listings and if they qualify, their tokens will be listed on the platform. These companies will pay for the listing services either with the XGG tokens or with the DMST.

Marketing efforts for the 10x.gg

The company has a very comprehensive marketing campaign. The goal is to position 10x platform as a leading platform that enables users from all over the world to join with various tokens. The platform will be positioned in a very unique manner, as a platform that brings real value to the users. The marketing campaign will be intensive and a total of $250,000 dollars will be spent on various marketing operations.

Digital marketing will form the bulk of our marketing operations. We will run ads all over and our focus will be on main leading websites and platforms. especially those that are dedicated to finance and cryptocurrency. We will also run very serious marketing campaigns on platforms like Instagram, Facebook, YouTube and other social media platforms.

Partnerships will also be a core thing when it comes to promoting our platform and its offerings. We will collaborate with leading influencers and other brands that will help us market the 10x platform. We will have a multi-faceted marketing strategy that will help us reach out to people in every possible way.

Buyback plan

In every pool draw the winners will get 90 percent of the money while the 10% will be the platform’s profit. All the profit generated by the platform will be dedicated towards buybacks. For example if the total volume in the platform is $100 million, the platform will make 10 percent of this; in our case, $10 million will be the profit and it will all be used in XGG & DMST buyback programs.

XGG Airdrop

The plan is to release XGG airdrop to all the DMST holders; where each holder will get the XGG tokens as a 1:1 ratio. The supply of the XGG tokens will be limited to a total of 1 billion.

Airdrop Maximum Amount: 5% of Total Supply

Snapshot Date: TBA

How and Where to Buy 10x.gg (XGG) ?

XGG 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 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 XGG

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

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

Binance is a popular cryptocurrency exchange which was started in China but then moved their headquarters to the crypto-friendly Island of Malta in the EU. Binance is popular for its crypto to crypto exchange services. Binance exploded onto the scene in the mania of 2017 and has since gone on to become the top crypto exchange in the world.

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)

SIGN UP ON BINANCE

Step by Step Guide : What is Binance | How to Create an account on Binance (Updated 2021)

Next step - Transfer your cryptos to an Altcoin Exchange

Since XGG is an altcoin we need to transfer our coins to an exchange that XGG can be traded. Below is a list of exchanges that offers to trade XGG in various market pairs, head to their websites and register for an account.

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

Exchange: Uniswap (V2), and Bilaxy

Apart from the exchange(s) above, there are a few popular crypto exchanges where they have decent daily trading volumes and a huge user base. This will ensure you will be able to sell your coins at any time and the fees will usually be lower. It is suggested that you also register on these exchanges since once XGG gets listed there it will attract a large amount of trading volumes from the users there, that means you will be having some great trading opportunities!

Top exchanges for token-coin trading. Follow instructions and make unlimited money

https://www.binance.com
https://www.bittrex.com
https://www.poloniex.com
https://www.bitfinex.com
https://www.huobi.com
https://www.mxc.ai
https://www.probit.com
https://www.gate.io
https://www.coinbase.com

Find more information XGG

WebsiteExplorerExplorer 2Social ChannelSocial Channel 2Coinmarketcap

Would you like to earn TOKEN right now! ☞ CLICK HERE

I hope this post will help you. If you liked this, please sharing it with others. Thank you!

#blockchain #bitcoin #10x.gg #xgg

What is GEEK

Buddha Community

What is 10x.gg (XGG) | What is 10x.gg token | What is XGG token

What is 10x.gg (XGG) | What is 10x.gg token | What is XGG token

Cryptocurrencies have revolutionized our lives in almost every aspect. From the way we deal with our finances and even how we invest. 10x is a unique platform that has been created for all the crypto enthusiasts globally. Basically it is designed in a way in which users will be able to join a lottery system whereby lucky winners will be able to gain massive rewards. One will be able to gain up to 10 times what they invested in just 24 hours. This is one of the most innovative crypto projects out there and this article will give a detailed explanation about how this platform works.

Signing up

Before being able to use the platform, users will be directed into the homepage; here the concept of how the platform works is explained and from this page users are also able to sign up and become members. A few details like one’s email and preferred username will be required. After logging in and verifying the account, one is directed to the dashboard page.

How to navigate the dashboard.

Image for post

The dashboard is the main area of the platform and from this point one can be able to see some key statistics. The user will be able to view the balances on all the accounts associated belonging to the user. From the dashboard one is also able to see the total number of registered users and at the same time the number of users who are online at that moment will also be visible. The most trending coin among the platform users will be visible; usually this will be the most used coin in the platform at that particular instance. Winners who have participated in the pools will also be displayed here. The dashboard also has bars that enables users to navigate into the other sections of the website.

The platform has a two factor authentication

Image for post

The platform has put many measures in place to ensure that everything will be secure and that all the users will be protected. One of these security measures is having a two factor authentication system. Upon signing up into the platform, users will have an option to enable this authentication system in their accounts. This doubles down on the security of one’s account making it completely secure.

Pools page

Image for post

This is the page where the users will be able to view all the available tokens and how much of each crypto coin they have in their wallets. From this page one can also add more coins into their accounts in case they need to.

How do the pools work?

The pool is where all the action takes place. This is where one can join the pool rounds by staking a certain amount of coins in their wallet. Users will be able to win a certain amount of money and for every pool there is always a winner. Users will be able to join the pools by staking a certain amount of coins that can be divided or multiplied by a factor of 10 depending on the outcome. One cannot stake more than they have deposited and this means that the amount deposited equals the maximum amount deposited into the pool and this creates a fair chance of winning or losing.

Each pool is designed in such a way a user can’t deposit money twice on the same pool, this ensures that all the participants in a certain pool all have equal chances of winning. Every pool has a lifespan of 24 hours. Every pool will have to be filled by a certain number of users and if a pool fills before 24 hours, it will still be closed but it will take 24 hours for the winner to be announced. There will always be multiple pools in the platform and this means there will be many opportunities to win every single day. In case 24 hours pass and a certain pool has not yet been filled, the pool will automatically close but in this case no one will either win or lose, the users will get a refund and they will be able to use their funds to join other pools. However, it is not an obligation for the users to join another pool after withdrawing their coins for the pool that failed to fill.

Since every pool is created by multiple users and not a single user, one will be able to withdraw their money from the pool as long as the pool is not closed. Once the pool fills and closes, one will not be able to withdraw what they had invested. They will have to wait for the results within 24 hours. All the pools will have to be divisible by 10. For example, a 10 ETH pool can be joined by 10 people each investing 1 ETH, a 20 ETH pool can be joined by 10 people each investing 2ETH and a 100ETH pool can be joined by 10 people each investing 10 ETH. The combinations can be endless as long as everything is divisible by 10. To put it simple, the system has been designed in a way in which the profits will be maximized and the winner will be able to walk away with 10 times what they invested initially.

In each pool, key information will be displayed. This will include the name of the pool, maximum number of users who can join the pool based on the 10 divisibility criteria. The sum of money that will be won by the winner will also be shown to the pool members and a time duration; a countdown towards the 24 hours, either the winner will be announced or the pool will close if sufficient users failed to join that particular pool. The percentage of the pool that has been filled and the numbers of users left to fill the pool will also be displayed. Typically, after each draw the winner will get 90 percent of the money and 10x platform will keep a 10% share.

Ongoing and closed pools

Image for post

This page is available to all the users. It displays the information about all the ongoing pools that have already been started and are still accepting new members. Also all the pools that the user is participating in will be shown at the top of the list of all the ongoing pools. On the other hand the closed pages will display all the pools the user has been involved in and have already been closed; those that the user joined but the pool failed to get enough members and those that went all the way to the draw after the 24 hours.

Wallet page

Image for post

This is the page that shows users their balances and gives them the information about all their holdings in each currency. On this page users can also deposit more coins into their wallets. It is also from this page that one can withdraw their profits from. The total amount of coins that the user has deposited are shown in this section. The available amount represents the outstanding balance after deducting all what has been invested into the ongoing pools at that particular moment. Within the wallet page, we also have the history section that displays the history of all the transactions that the user has carried out. Here the date, status and remarks for each transaction are available. The status will show you if the transaction was successful or whether it is pending.

Claim page

Image for post

This works more like an activity page; it shows the user the total number of pools they are participating in and it also indicates the total wins and losses from all the pools in total. The amount of money made or lost in each pool can be seen in the status section. The history of all the pools that the user participated in will appear here. The name of each of the polls will be indicated plus how they participate in each of the pools. Information related to each pool participation will be indicated here and this will include the amount that was invested in each of these pools, how much was won and how much was lost in each case.

Support page

Image for post

The 10x platform is very user-focused and a lot has been done to give the users any support they may need along the way. The frequently asked question is always the first thing that the user checks whenever they have an issue while any complex question or problem will be addressed by a dedicated support team whose job is to help the users.

The FAQ answers that have been published enables users to see answers to most asked questions by the platform users. At the same time, the platform has a dedicated system that enables the users to chat with the customer support team once the admins respond to their tickets. This ensures that all the questions from the users have been answered and everything has been clarified to the user.

Chat page

Image for post

This is a special page that has been dedicated to help the users communicate with each other globally. They can chat about various issues like different tokens, the platform in general, various pools or anything else that might be relevant to the community.

Tokens listings

10x will offer an opportunity to other companies with their own tokens to be a part of the platform. They will be able to apply for token listings and if they qualify, their tokens will be listed on the platform. These companies will pay for the listing services either with the XGG tokens or with the DMST.

Marketing efforts for the 10x.gg

The company has a very comprehensive marketing campaign. The goal is to position 10x platform as a leading platform that enables users from all over the world to join with various tokens. The platform will be positioned in a very unique manner, as a platform that brings real value to the users. The marketing campaign will be intensive and a total of $250,000 dollars will be spent on various marketing operations.

Digital marketing will form the bulk of our marketing operations. We will run ads all over and our focus will be on main leading websites and platforms. especially those that are dedicated to finance and cryptocurrency. We will also run very serious marketing campaigns on platforms like Instagram, Facebook, YouTube and other social media platforms.

Partnerships will also be a core thing when it comes to promoting our platform and its offerings. We will collaborate with leading influencers and other brands that will help us market the 10x platform. We will have a multi-faceted marketing strategy that will help us reach out to people in every possible way.

Buyback plan

In every pool draw the winners will get 90 percent of the money while the 10% will be the platform’s profit. All the profit generated by the platform will be dedicated towards buybacks. For example if the total volume in the platform is $100 million, the platform will make 10 percent of this; in our case, $10 million will be the profit and it will all be used in XGG & DMST buyback programs.

XGG Airdrop

The plan is to release XGG airdrop to all the DMST holders; where each holder will get the XGG tokens as a 1:1 ratio. The supply of the XGG tokens will be limited to a total of 1 billion.

Airdrop Maximum Amount: 5% of Total Supply

Snapshot Date: TBA

How and Where to Buy 10x.gg (XGG) ?

XGG 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 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 XGG

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

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

Binance is a popular cryptocurrency exchange which was started in China but then moved their headquarters to the crypto-friendly Island of Malta in the EU. Binance is popular for its crypto to crypto exchange services. Binance exploded onto the scene in the mania of 2017 and has since gone on to become the top crypto exchange in the world.

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)

SIGN UP ON BINANCE

Step by Step Guide : What is Binance | How to Create an account on Binance (Updated 2021)

Next step - Transfer your cryptos to an Altcoin Exchange

Since XGG is an altcoin we need to transfer our coins to an exchange that XGG can be traded. Below is a list of exchanges that offers to trade XGG in various market pairs, head to their websites and register for an account.

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

Exchange: Uniswap (V2), and Bilaxy

Apart from the exchange(s) above, there are a few popular crypto exchanges where they have decent daily trading volumes and a huge user base. This will ensure you will be able to sell your coins at any time and the fees will usually be lower. It is suggested that you also register on these exchanges since once XGG gets listed there it will attract a large amount of trading volumes from the users there, that means you will be having some great trading opportunities!

Top exchanges for token-coin trading. Follow instructions and make unlimited money

https://www.binance.com
https://www.bittrex.com
https://www.poloniex.com
https://www.bitfinex.com
https://www.huobi.com
https://www.mxc.ai
https://www.probit.com
https://www.gate.io
https://www.coinbase.com

Find more information XGG

WebsiteExplorerExplorer 2Social ChannelSocial Channel 2Coinmarketcap

Would you like to earn TOKEN right now! ☞ CLICK HERE

I hope this post will help you. If you liked this, please sharing it with others. Thank you!

#blockchain #bitcoin #10x.gg #xgg

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

David mr

David mr

1624106594

[LIVE] SHIBA INU TOKEN - SHIBA INU CRYPTO EXPLAINED & THIS ALTCOIN COULD 10X

[LIVE] SHIBA INU TOKEN - SHIBA INU CRYPTO EXPLAINED & THIS ALTCOIN COULD 10X

Shiba Inu Token livestream on the latest price action and latest news! This altcoin could 10x!
📺 The video in this post was made by Josh’s Finance
The origin of the article: https://www.youtube.com/watch?v=Ny7Bin258VQ
🔺 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 #shiba inu #token #shiba inu crypto explained & this altcoin could 10x #[live] shiba inu token - shiba inu crypto explained & this altcoin could 10x