1616817163
In this article, we’ll discuss information about the project Etheros and ETS token
ETHEROS is a complete, decentralized world in the form of a platform providing a social application based on Blockchain Ethereum with elements of virtual reality play (VR), where users (players) obtain or buy specified “fragments” of space, place, or thing using the native Etheros token (ETS). The native token of the application can be obtained with the Ethereum cryptocurrency.
Etheros is not only a decentralized platform but also a concept of a new decentralized world where everyone can become the owner and the user of any place or thing according to their imagination. This is a world where social balance, with clear-cut and transparent rules, and respect for property give a new opportunity to all people regardless of their location or social status.
Etheros gives new digital value to every person and to everything that is created or discovered in a virtual world created in the likeness of Earth. Etheros is a representation of the world we live in, where everyone can get something for themselves forever.
Further down the road, each user can freely manage their space, place, and everything contained in it, as well as buy and sell everything of value from and to other users. Thanks to this value, built by each user individually, his financial situation and the of many other people can change. Most importantly, though, each such value can be preserved as a store of value, or it can be sold, transferred to other people or entities.
In the current, commercialized world, a lot of companies and corporations would like to participate in modern undertakings, and the need for marking their role and standing out from their competitors forms an opportunity for the owner of the given value to achieve financial gain. At the same time, it is an important image and marketing factor to such enterprises and corporations, one which gives additional opportunities to derive benefits from an owned value.
Every owner of a place, space, or thing determines its purpose. At first, users obtain a square space measuring 1 km2. Every such square is defined by a set of Cartesian coordinates (x, y) on a map. This applies to all continents, lands, and islands. Seas and oceans are not owned by anyone but are the common good of all users of the entire Etheros world. Each area (square) acquired by a user is a transferable digital resource based on the Ethereum Blockchain. To obtain one’s own space, it is necessary to buy the native Etheros token or its part, referred to as Etos, during presale and via decentralized protocols and exchanges. On this basis, the user can perform any activity in the application and take various actions, not available in such an advanced form before. Whitepaper on our web page presents the concept of the planet Etheros, its technical conditions, and the economic system — a new, fair Earth, decentralized among its users.
To decentralize the management of the entire Etheros project, and to allow users to make a profit, it will be necessary to possess ETS tokens. Management will be fully decentralized and open, which means that all stakeholders will be able to take direct part in running the project. This will be achieved thanks to the ETS token, which will involve a right to vote in the Etheros DAO.
Decentralized management requires well-selected incentive mechanisms, which will have a positive effect on the development of the project. In other words, the entities managing the given space will be able to turn a profit by making investment decisions and will additionally be rewarded for their actions. The ETS token aims to streamline this process by the application of the following five mechanisms:
1. The Consensus Mechanism: Spaces as a whole belong to their owners. They are the ones who decide their purpose and are the first to have the right to vote.
2. The Matter Mechanism: The entire space consists of matter. The owner has to choose in which model a space will be created — real or virtual.
3. The Resources Mechanism: Spaces contain hidden natural resources (just like in the real world). The resources are based on digital assets. Owning a space gives the right to explore, extract, obtain, transfer or sell the resources.
4. The Action Mechanism: Users can undertake all private and commercial activities in a world based on 2D and 3D Architecture.
5. The Succession Mechanism: At any given time, the owners of the space can appoint a successor who will manage it after they are gone.
All these mechanisms constitute a financial incentive to participate in the Etheros world and support activities that increase income. In addition, the Succession Mechanisms will allow users to secure the value they developed over time and to choose a successor who will acquire the full right to take over their property after they are gone.
Etheros (ETS) is the native token of the Etheros platform. Users (players) obtain or buy specific “fragments” of space, place, or thing using the ETS token.
Etheros token metrics are as follows:
Max Supply: 148,940,000 ETS
Etheros token address: 0xaEF76e2c14365aD2cE78a52fC8c224623c2657b6
Etheros token link: http://token.etheros.io
Category 1
Marketing, Fees, Bounty, Advisors: 5% of total supply: unlocked
Development, Team, Partners, Contributors: 10% of total supply: vest over 2 years with a 6-month cliff
Category 2
Community: 85%
Seed Investors, Private Investors: 4.43% of total supply: unlocked, 10% bonus after 3 months of staking
Etheros Hidden Resources Rewards: 6.71% of total supply: starting on platform launch
Etheros World Builders, Developers: 6.71% of total supply: starting on platform launch, distributed over 2+ years
Public: 67.14% of total supply: 30% on the 1st sale (30M), 30% after 6 months (30M), 40% after 12 months (40M)
Explanation:
Etheros World Builders, Developers: according to the Action Mechanism, space users and developers can additionally take active part in building the Etheros world. This contribution will allow them to obtain ETS coins. Moreover, the best ideas and projects will be awarded with units of the Ethereum coin, i.e. Wei, which will belong to the given space owner completely.
Etheros Hidden Resources Rewards: according to the Resources Mechanism, space users will be able to try to find valuable resources which will allow them to become suppliers of resources for other users. Importantly, even mere discovery of such resources allows their owners to derive permanent gain. In addition, their attempts at discovering the resources will also give them an opportunity to find places with ETS coins and units of Bitcoins, i.e. Satoshi, which will belong to their finder completely.
Our mission is to change the world and thus improve the financial status of many people. Etheros World is a chance for a better life! Reading how Etheros works in your language makes it even more approachable and understandable. We are launching a new revolutionary project, and we want to address not only those from the blockchain industry, but all people from diverse backgrounds, cultures, and with different mindsets. Enjoy it!
Etheros Whitepaper
English — https://etheros.io/docs/whitepaper_etheros_en.pdf
Chinese (中文) — https://etheros.io/docs/whitepaper_etheros_cn.pdf
Spanish (Español) — https://etheros.io/docs/whitepaper_etheros_es.pdf
Russian (Pyccкий) — https://etheros.io/docs/whitepaper_etheros_ru.pdf
Korean (한국어) — https://etheros.io/docs/whitepaper_etheros_kr.pdf
Polish (Polski) — https://etheros.io/docs/whitepaper_etheros_pl.pdf
German (Deutsch)- https://etheros.io/docs/whitepaper_etheros_de.pdf
French (Français)- https://etheros.io/docs/whitepaper_etheros_fr.pdf
Italian (Italiano)- https://etheros.io/docs/whitepaper_etheros_it.pdf
Ukrainian (Aнгieльcький)- https ://etheros.io/docs/whitepaper_etheros_ua.pdf
Japanese (日本人) — (04/16から日本語))
Official Website — https://etheros.io
Twitter — https://twitter.com/EtherosIo
Medium — https://medium.com/etheros
Linkedin — https://www.linkedin.com/company/etherosio
Telegram Official — https://t.me/EtherosioOfficial
Telegram Community — https://t.me/Etherosio
Reddit — https://www.reddit.com/r/Etheros
Instagram — https://www.instagram.com/etheros.io/
Facebook — https://www.facebook.com/etherosio
Public Token Distribution Event details:
Would you like to earn TOKEN right now! ☞ CLICK HERE
Etheros 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 Etheros
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)
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
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 Etheros from the exchange: **Uniswap and Mesa DEX **
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 Etheros 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
🔺DISCLAIMER: Trading Cryptocurrency is VERY risky. Make sure that you understand these risks if you are a beginner. The Information in the post is my OPINION and not financial advice. You are responsible for what you do with your funds
Learn about Cryptocurrency in this article ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
Don’t hesitate to let me know if you intend to give a little extra bonus to this article. I highly appreciate your actions!
Wallet address:
BTC : 1FnYrvnEmov2w9fovbDQ4vX8U2dhrEc29c
USDT : 0xfee027e0acfa386809eca0276dab286900d75ad7
DOGE : DSsLMmGTwCnJ48toEyYmEF4gr2VXTa5LiZ
Thank for visiting and reading this article! Please don’t forget to leave a like, comment and share!
#blockchain #bitcoin #crypto #etheros #ets
1616817163
In this article, we’ll discuss information about the project Etheros and ETS token
ETHEROS is a complete, decentralized world in the form of a platform providing a social application based on Blockchain Ethereum with elements of virtual reality play (VR), where users (players) obtain or buy specified “fragments” of space, place, or thing using the native Etheros token (ETS). The native token of the application can be obtained with the Ethereum cryptocurrency.
Etheros is not only a decentralized platform but also a concept of a new decentralized world where everyone can become the owner and the user of any place or thing according to their imagination. This is a world where social balance, with clear-cut and transparent rules, and respect for property give a new opportunity to all people regardless of their location or social status.
Etheros gives new digital value to every person and to everything that is created or discovered in a virtual world created in the likeness of Earth. Etheros is a representation of the world we live in, where everyone can get something for themselves forever.
Further down the road, each user can freely manage their space, place, and everything contained in it, as well as buy and sell everything of value from and to other users. Thanks to this value, built by each user individually, his financial situation and the of many other people can change. Most importantly, though, each such value can be preserved as a store of value, or it can be sold, transferred to other people or entities.
In the current, commercialized world, a lot of companies and corporations would like to participate in modern undertakings, and the need for marking their role and standing out from their competitors forms an opportunity for the owner of the given value to achieve financial gain. At the same time, it is an important image and marketing factor to such enterprises and corporations, one which gives additional opportunities to derive benefits from an owned value.
Every owner of a place, space, or thing determines its purpose. At first, users obtain a square space measuring 1 km2. Every such square is defined by a set of Cartesian coordinates (x, y) on a map. This applies to all continents, lands, and islands. Seas and oceans are not owned by anyone but are the common good of all users of the entire Etheros world. Each area (square) acquired by a user is a transferable digital resource based on the Ethereum Blockchain. To obtain one’s own space, it is necessary to buy the native Etheros token or its part, referred to as Etos, during presale and via decentralized protocols and exchanges. On this basis, the user can perform any activity in the application and take various actions, not available in such an advanced form before. Whitepaper on our web page presents the concept of the planet Etheros, its technical conditions, and the economic system — a new, fair Earth, decentralized among its users.
To decentralize the management of the entire Etheros project, and to allow users to make a profit, it will be necessary to possess ETS tokens. Management will be fully decentralized and open, which means that all stakeholders will be able to take direct part in running the project. This will be achieved thanks to the ETS token, which will involve a right to vote in the Etheros DAO.
Decentralized management requires well-selected incentive mechanisms, which will have a positive effect on the development of the project. In other words, the entities managing the given space will be able to turn a profit by making investment decisions and will additionally be rewarded for their actions. The ETS token aims to streamline this process by the application of the following five mechanisms:
1. The Consensus Mechanism: Spaces as a whole belong to their owners. They are the ones who decide their purpose and are the first to have the right to vote.
2. The Matter Mechanism: The entire space consists of matter. The owner has to choose in which model a space will be created — real or virtual.
3. The Resources Mechanism: Spaces contain hidden natural resources (just like in the real world). The resources are based on digital assets. Owning a space gives the right to explore, extract, obtain, transfer or sell the resources.
4. The Action Mechanism: Users can undertake all private and commercial activities in a world based on 2D and 3D Architecture.
5. The Succession Mechanism: At any given time, the owners of the space can appoint a successor who will manage it after they are gone.
All these mechanisms constitute a financial incentive to participate in the Etheros world and support activities that increase income. In addition, the Succession Mechanisms will allow users to secure the value they developed over time and to choose a successor who will acquire the full right to take over their property after they are gone.
Etheros (ETS) is the native token of the Etheros platform. Users (players) obtain or buy specific “fragments” of space, place, or thing using the ETS token.
Etheros token metrics are as follows:
Max Supply: 148,940,000 ETS
Etheros token address: 0xaEF76e2c14365aD2cE78a52fC8c224623c2657b6
Etheros token link: http://token.etheros.io
Category 1
Marketing, Fees, Bounty, Advisors: 5% of total supply: unlocked
Development, Team, Partners, Contributors: 10% of total supply: vest over 2 years with a 6-month cliff
Category 2
Community: 85%
Seed Investors, Private Investors: 4.43% of total supply: unlocked, 10% bonus after 3 months of staking
Etheros Hidden Resources Rewards: 6.71% of total supply: starting on platform launch
Etheros World Builders, Developers: 6.71% of total supply: starting on platform launch, distributed over 2+ years
Public: 67.14% of total supply: 30% on the 1st sale (30M), 30% after 6 months (30M), 40% after 12 months (40M)
Explanation:
Etheros World Builders, Developers: according to the Action Mechanism, space users and developers can additionally take active part in building the Etheros world. This contribution will allow them to obtain ETS coins. Moreover, the best ideas and projects will be awarded with units of the Ethereum coin, i.e. Wei, which will belong to the given space owner completely.
Etheros Hidden Resources Rewards: according to the Resources Mechanism, space users will be able to try to find valuable resources which will allow them to become suppliers of resources for other users. Importantly, even mere discovery of such resources allows their owners to derive permanent gain. In addition, their attempts at discovering the resources will also give them an opportunity to find places with ETS coins and units of Bitcoins, i.e. Satoshi, which will belong to their finder completely.
Our mission is to change the world and thus improve the financial status of many people. Etheros World is a chance for a better life! Reading how Etheros works in your language makes it even more approachable and understandable. We are launching a new revolutionary project, and we want to address not only those from the blockchain industry, but all people from diverse backgrounds, cultures, and with different mindsets. Enjoy it!
Etheros Whitepaper
English — https://etheros.io/docs/whitepaper_etheros_en.pdf
Chinese (中文) — https://etheros.io/docs/whitepaper_etheros_cn.pdf
Spanish (Español) — https://etheros.io/docs/whitepaper_etheros_es.pdf
Russian (Pyccкий) — https://etheros.io/docs/whitepaper_etheros_ru.pdf
Korean (한국어) — https://etheros.io/docs/whitepaper_etheros_kr.pdf
Polish (Polski) — https://etheros.io/docs/whitepaper_etheros_pl.pdf
German (Deutsch)- https://etheros.io/docs/whitepaper_etheros_de.pdf
French (Français)- https://etheros.io/docs/whitepaper_etheros_fr.pdf
Italian (Italiano)- https://etheros.io/docs/whitepaper_etheros_it.pdf
Ukrainian (Aнгieльcький)- https ://etheros.io/docs/whitepaper_etheros_ua.pdf
Japanese (日本人) — (04/16から日本語))
Official Website — https://etheros.io
Twitter — https://twitter.com/EtherosIo
Medium — https://medium.com/etheros
Linkedin — https://www.linkedin.com/company/etherosio
Telegram Official — https://t.me/EtherosioOfficial
Telegram Community — https://t.me/Etherosio
Reddit — https://www.reddit.com/r/Etheros
Instagram — https://www.instagram.com/etheros.io/
Facebook — https://www.facebook.com/etherosio
Public Token Distribution Event details:
Would you like to earn TOKEN right now! ☞ CLICK HERE
Etheros 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 Etheros
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)
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
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 Etheros from the exchange: **Uniswap and Mesa DEX **
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 Etheros 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
🔺DISCLAIMER: Trading Cryptocurrency is VERY risky. Make sure that you understand these risks if you are a beginner. The Information in the post is my OPINION and not financial advice. You are responsible for what you do with your funds
Learn about Cryptocurrency in this article ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
Don’t hesitate to let me know if you intend to give a little extra bonus to this article. I highly appreciate your actions!
Wallet address:
BTC : 1FnYrvnEmov2w9fovbDQ4vX8U2dhrEc29c
USDT : 0xfee027e0acfa386809eca0276dab286900d75ad7
DOGE : DSsLMmGTwCnJ48toEyYmEF4gr2VXTa5LiZ
Thank for visiting and reading this article! Please don’t forget to leave a like, comment and share!
#blockchain #bitcoin #crypto #etheros #ets
1603255867
We at ICO Development cover all the major steps or activities i.e. light paper & white paper drafting, coin or token creation, ICO fundraising dashboard, coin drop, marketing plan, bounty management etc. that will help you to raise a successful ICO.
#ico development #ico development services #ico solutions #ico services #ico development company
1658068560
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.
["Bayrūt"]
and not ["Bayr", "ū", "t"]
, for example.Add this line to your application's Gemfile:
gem 'words_counted'
And then execute:
$ bundle
Or install it yourself as:
$ gem install words_counted
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.
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
.
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.
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
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.
:odd?
.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}, "و"]
)
# => ["هي", "سامي", "وداني"]
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"]
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")
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.
The program will normalise (downcase) all incoming strings for consistency and filters.
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.
Visit this website for one example of what you can do with WordsCounted.
Contributors
See contributors.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Author: Abitdodgy
Source Code: https://github.com/abitdodgy/words_counted
License: MIT license
1659601560
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.
Visit this website for one example of what you can do with WordsCounted.
["Bayrūt"]
and not ["Bayr", "ū", "t"]
, for example.Add this line to your application's Gemfile:
gem 'words_counted'
And then execute:
$ bundle
Or install it yourself as:
$ gem install words_counted
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.
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
.
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.
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
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.
:odd?
.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}, "و"]
)
# => ["هي", "سامي", "وداني"]
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"]
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")
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.
The program will normalise (downcase) all incoming strings for consistency and filters.
def self.from_url
# open url and send string here after removing html
end
See contributors.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Author: abitdodgy
Source code: https://github.com/abitdodgy/words_counted
License: MIT license
#ruby #ruby-on-rails
1611118213
At ICO Development, we create your ICO for victory with powerful PR campaigns, Whitepaper services, drafted pre-ICO technology set-up, dedicated & skillful ICO customer services, Smart contract setup, & standard block explorer integration services.
#ico development #best ico development company #top ico development services #ico solutions #pre-ico development company